Mercurial > kallithea
annotate rhodecode/templates/errors/error_document.html @ 3619:03028bf372d7 beta
missing changesets should return 404 not redirect + flash.
It feels more correct.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 27 Mar 2013 19:38:05 +0100 |
parents | 0e18540fd1c7 |
children | 3563bb7b4b82 b15d81ad824d |
rev | line source |
---|---|
0 | 1 ## -*- coding: utf-8 -*- |
2490
7a5eeafb1a9a
better path extraction method.
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
2 <!DOCTYPE html> |
1156
c9a9e0b3baf8
removed obsolete id from <html>
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
3 <html xmlns="http://www.w3.org/1999/xhtml"> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
315
diff
changeset
|
4 <head> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
315
diff
changeset
|
5 <title>Error - ${c.error_message}</title> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
315
diff
changeset
|
6 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> |
2490
7a5eeafb1a9a
better path extraction method.
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
7 <meta name="robots" content="index, nofollow"/> |
7a5eeafb1a9a
better path extraction method.
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
8 <link rel="icon" href="${h.url('/images/icons/database_gear.png')}" type="image/png" /> |
2673
d5e42c00f3c1
white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2490
diff
changeset
|
9 |
2490
7a5eeafb1a9a
better path extraction method.
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
10 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> |
3197 | 11 %if c.redirect_time: |
12 <meta http-equiv="refresh" content="${c.redirect_time}; url=${c.url_redirect}"/> | |
13 %endif | |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
14 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
315
diff
changeset
|
15 <!-- stylesheets --> |
1050
cabe887a9829
removed obsolete _static flag from url, and fixed urls in webhelpers
Marcin Kuzminski <marcin@python-works.com>
parents:
1049
diff
changeset
|
16 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" /> |
3197 | 17 <style type="text/css"> |
18 #main_div{ | |
19 border: 0px solid #000; | |
20 width: 500px; | |
21 margin: auto; | |
22 text-align: center; | |
23 margin-top: 200px; | |
24 font-size: 1.6em; | |
25 } | |
26 .error_message{ | |
27 text-align: center; | |
28 color:#003367; | |
29 font-size: 1.6em; | |
30 margin:10px; | |
31 } | |
32 </style> | |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
33 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
315
diff
changeset
|
34 </head> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
315
diff
changeset
|
35 <body> |
3619
03028bf372d7
missing changesets should return 404 not redirect + flash.
Marcin Kuzminski <marcin@python-works.com>
parents:
3618
diff
changeset
|
36 <div class="flash_msg"> |
03028bf372d7
missing changesets should return 404 not redirect + flash.
Marcin Kuzminski <marcin@python-works.com>
parents:
3618
diff
changeset
|
37 <% messages = h.flash.pop_messages() %> |
03028bf372d7
missing changesets should return 404 not redirect + flash.
Marcin Kuzminski <marcin@python-works.com>
parents:
3618
diff
changeset
|
38 % if messages: |
03028bf372d7
missing changesets should return 404 not redirect + flash.
Marcin Kuzminski <marcin@python-works.com>
parents:
3618
diff
changeset
|
39 <ul id="flash-messages"> |
03028bf372d7
missing changesets should return 404 not redirect + flash.
Marcin Kuzminski <marcin@python-works.com>
parents:
3618
diff
changeset
|
40 % for message in messages: |
03028bf372d7
missing changesets should return 404 not redirect + flash.
Marcin Kuzminski <marcin@python-works.com>
parents:
3618
diff
changeset
|
41 <li class="${message.category}_msg">${message}</li> |
03028bf372d7
missing changesets should return 404 not redirect + flash.
Marcin Kuzminski <marcin@python-works.com>
parents:
3618
diff
changeset
|
42 % endfor |
03028bf372d7
missing changesets should return 404 not redirect + flash.
Marcin Kuzminski <marcin@python-works.com>
parents:
3618
diff
changeset
|
43 </ul> |
03028bf372d7
missing changesets should return 404 not redirect + flash.
Marcin Kuzminski <marcin@python-works.com>
parents:
3618
diff
changeset
|
44 % endif |
03028bf372d7
missing changesets should return 404 not redirect + flash.
Marcin Kuzminski <marcin@python-works.com>
parents:
3618
diff
changeset
|
45 </div> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
315
diff
changeset
|
46 <div id="login"> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
47 <div class="table"> |
3197 | 48 <div id="main_div"> |
49 <div style="font-size:2.0em;margin: 10px">${c.rhodecode_name}</div> | |
50 <h1 class="error_message">${c.error_message}</h1> | |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
51 |
3197 | 52 <p>${c.error_explanation}</p> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
53 |
3197 | 54 %if c.redirect_time: |
55 <p>${_('You will be redirected to %s in %s seconds') % (c.redirect_module,c.redirect_time)}</p> | |
56 %endif | |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
57 |
3197 | 58 </div> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
315
diff
changeset
|
59 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
315
diff
changeset
|
60 <!-- end login --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
315
diff
changeset
|
61 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
315
diff
changeset
|
62 </body> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
63 |
0 | 64 </html> |