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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
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
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
11 %if c.redirect_time:
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
12 <meta http-equiv="refresh" content="${c.redirect_time}; url=${c.url_redirect}"/>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
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
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
17 <style type="text/css">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
18 #main_div{
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
19 border: 0px solid #000;
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
20 width: 500px;
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
21 margin: auto;
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
22 text-align: center;
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
23 margin-top: 200px;
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
24 font-size: 1.6em;
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
25 }
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
26 .error_message{
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
27 text-align: center;
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
28 color:#003367;
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
29 font-size: 1.6em;
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
30 margin:10px;
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
31 }
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
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
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
48 <div id="main_div">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
49 <div style="font-size:2.0em;margin: 10px">${c.rhodecode_name}</div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
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
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
52 <p>${c.error_explanation}</p>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
53
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
54 %if c.redirect_time:
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
55 <p>${_('You will be redirected to %s in %s seconds') % (c.redirect_module,c.redirect_time)}</p>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
56 %endif
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
57
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
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
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
64 </html>