add files
|
1 |
<!DOCTYPE html> |
2 |
<html> |
|
3 |
<head> |
|
4 |
<title>Page not found</title> |
|
5 |
%= stylesheet begin |
|
6 |
body { |
|
7 |
background: url(<%= url_for '/mojo/pinstripe-light.png' %>); |
|
8 |
color: #445555; |
|
9 |
font: 0.9em 'Helvetica Neue', Helvetica, sans-serif; |
|
10 |
font-weight: normal; |
|
11 |
line-height: 1.5em; |
|
12 |
margin: 0; |
|
13 |
} |
|
14 |
code { |
|
15 |
background-color: #eef9ff; |
|
16 |
border: solid #cce4ff 1px; |
|
17 |
border-radius: 5px; |
|
18 |
color: #333; |
|
19 |
font: 0.9em Consolas, Menlo, Monaco, Courier, monospace; |
|
20 |
padding: 0.4em; |
|
21 |
} |
|
22 |
h1 { |
|
23 |
color: #2a2a2a; |
|
24 |
font-size: 1.5em; |
|
25 |
margin: 0; |
|
26 |
} |
|
27 |
pre { |
|
28 |
font: 0.9em Consolas, Menlo, Monaco, Courier, monospace; |
|
29 |
margin: 0; |
|
30 |
white-space: pre-wrap; |
|
31 |
} |
|
32 |
table { |
|
33 |
border-collapse: collapse; |
|
34 |
color: #333; |
|
35 |
margin-top: 1em; |
|
36 |
margin-bottom: 1em; |
|
37 |
width: 100%; |
|
38 |
} |
|
39 |
td { |
|
40 |
border-top: solid #cce4ff 1px; |
|
41 |
padding: 0.5em; |
|
42 |
} |
|
43 |
th { |
|
44 |
padding: 0.5em; |
|
45 |
text-align: left; |
|
46 |
} |
|
47 |
tr:nth-child(even) td { background-color: #ddeeff } |
|
48 |
tr:nth-child(odd) td { background-color: #eef9ff } |
|
49 |
#footer { |
|
50 |
padding-top: 1em; |
|
51 |
text-align: center; |
|
52 |
} |
|
53 |
#routes { |
|
54 |
background-color: #fff; |
|
55 |
border-bottom-left-radius: 5px; |
|
56 |
border-bottom-right-radius: 5px; |
|
57 |
box-shadow: 0px 0px 2px #999; |
|
58 |
margin-left: 5em; |
|
59 |
margin-right: 5em; |
|
60 |
padding: 1em; |
|
61 |
padding-top: 70px; |
|
62 |
} |
|
63 |
#wrapperlicious { |
|
64 |
max-width: 1000px; |
|
65 |
margin: 0 auto; |
|
66 |
} |
|
67 |
% end |
|
68 |
</head> |
|
69 |
<body> |
|
70 |
%= include inline => app->renderer->_bundled('mojobar') |
|
71 |
<div id="wrapperlicious"> |
|
72 |
<div id="routes"> |
|
73 |
<h1>Page not found... yet!</h1> |
|
74 |
<p> |
|
75 |
None of these routes matched your |
|
76 |
<code><%= $self->req->method %></code> request for |
|
77 |
<code><%= $self->req->url->path %></code>, maybe you need to add a |
|
78 |
new one? |
|
79 |
</p> |
|
80 |
% my $walk = begin |
|
81 |
% my ($walk, $route, $depth) = @_; |
|
82 |
<tr> |
|
83 |
<td> |
|
84 |
% my $pattern = $route->pattern->pattern || '/'; |
|
85 |
% $pattern = "+$pattern" if $depth; |
|
86 |
<pre><%= ' ' x $depth %><%= $pattern %></pre> |
|
87 |
</td> |
|
88 |
<td> |
|
89 |
<pre><%= uc(join ',', @{$route->via || []}) || '*' %></pre> |
|
90 |
</td> |
|
91 |
<td> |
|
92 |
% my $name = $route->name; |
|
93 |
<pre><%= $route->has_custom_name ? qq{"$name"} : $name %></pre> |
|
94 |
</td> |
|
95 |
</tr> |
|
96 |
% $depth++; |
|
97 |
%= $walk->($walk, $_, $depth) for @{$route->children}; |
|
98 |
% $depth--; |
|
99 |
% end |
|
100 |
<table> |
|
101 |
<tr> |
|
102 |
<th>Pattern</th> |
|
103 |
<th>Methods</th> |
|
104 |
<th>Name</th> |
|
105 |
</tr> |
|
106 |
%= $walk->($walk, $_, 0) for @{app->routes->children}; |
|
107 |
</table> |
|
108 |
</div> |
|
109 |
</div> |
|
110 |
<div id="footer"> |
|
111 |
%= link_to 'http://mojolicio.us' => begin |
|
112 |
%= image '/mojo/logo-black.png', alt => 'Mojolicious logo' |
|
113 |
% end |
|
114 |
</div> |
|
115 |
</body> |
|
116 |
</html> |