##// END OF EJS Templates
error-tracker: use nicer display for exception generated by rhodecode.
marcink -
r2974:1f13671a default
parent child Browse files
Show More
@@ -1,84 +1,91 b''
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 <!DOCTYPE html>
2 <!DOCTYPE html>
3 <html xmlns="http://www.w3.org/1999/xhtml">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
4 <head>
5 <title>Error - ${c.error_message}</title>
5 <title>Error - ${c.error_message}</title>
6 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
6 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7 <meta name="robots" content="index, nofollow"/>
7 <meta name="robots" content="index, nofollow"/>
8 <link rel="icon" href="${h.asset('images/favicon.ico')}" sizes="16x16 32x32" type="image/png" />
8 <link rel="icon" href="${h.asset('images/favicon.ico')}" sizes="16x16 32x32" type="image/png" />
9
9
10 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
10 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
11 %if c.redirect_time:
11 %if c.redirect_time:
12 <meta http-equiv="refresh" content="${c.redirect_time}; url=${c.url_redirect}"/>
12 <meta http-equiv="refresh" content="${c.redirect_time}; url=${c.url_redirect}"/>
13 %endif
13 %endif
14
14
15 <link rel="stylesheet" type="text/css" href="${h.asset('css/style.css', ver=c.rhodecode_version_hash)}" media="screen"/>
15 <link rel="stylesheet" type="text/css" href="${h.asset('css/style.css', ver=c.rhodecode_version_hash)}" media="screen"/>
16 <!--[if IE]>
16 <!--[if IE]>
17 <link rel="stylesheet" type="text/css" href="${h.asset('css/ie.css')}" media="screen"/>
17 <link rel="stylesheet" type="text/css" href="${h.asset('css/ie.css')}" media="screen"/>
18 <![endif]-->
18 <![endif]-->
19 <style>body { background:#eeeeee; }</style>
19 <style>body { background:#eeeeee; }</style>
20 <script type="text/javascript">
20 <script type="text/javascript">
21 // register templateContext to pass template variables to JS
21 // register templateContext to pass template variables to JS
22 var templateContext = {timeago: {}};
22 var templateContext = {timeago: {}};
23 </script>
23 </script>
24 <script type="text/javascript" src="${h.asset('js/scripts.js', ver=c.rhodecode_version_hash)}"></script>
24 <script type="text/javascript" src="${h.asset('js/scripts.js', ver=c.rhodecode_version_hash)}"></script>
25 </head>
25 </head>
26 <body>
26 <body>
27
27
28 <div class="wrapper error_page">
28 <div class="wrapper error_page">
29 <div class="sidebar">
29 <div class="sidebar">
30 <a href="${h.route_path('home')}"><img class="error-page-logo" src="${h.asset('images/RhodeCode_Logo_Black.png')}" alt="RhodeCode"/></a>
30 <a href="${h.route_path('home')}"><img class="error-page-logo" src="${h.asset('images/RhodeCode_Logo_Black.png')}" alt="RhodeCode"/></a>
31 </div>
31 </div>
32 <div class="main-content">
32 <div class="main-content">
33 <h1>
33 <h1>
34 <span class="error-branding">
34 <span class="error-branding">
35 ${h.branding(c.rhodecode_name)}
35 ${h.branding(c.rhodecode_name)}
36 </span><br/>
36 </span><br/>
37 ${c.error_message} | <span class="error_message">${c.error_explanation}</span>
37 ${c.error_message} | <span class="error_message">${c.error_explanation}</span>
38 </h1>
38 </h1>
39 % if c.messages:
39 % if c.messages:
40 % for message in c.messages:
40 % for message in c.messages:
41 <div class="alert alert-${message.category}">${message}</div>
41 <div class="alert alert-${message.category}">${message}</div>
42 % endfor
42 % endfor
43 % endif
43 % endif
44 %if c.redirect_time:
44 %if c.redirect_time:
45 <p>${_('You will be redirected to %s in %s seconds') % (c.redirect_module,c.redirect_time)}</p>
45 <p>${_('You will be redirected to %s in %s seconds') % (c.redirect_module,c.redirect_time)}</p>
46 %endif
46 %endif
47 <div class="inner-column">
47 <div class="inner-column">
48 <h4>Possible Causes</h4>
48 <h4>Possible Causes</h4>
49 <ul>
49 <ul>
50 % if c.causes:
50 % if c.causes:
51 %for cause in c.causes:
51 %for cause in c.causes:
52 <li>${cause}</li>
52 <li>${cause}</li>
53 %endfor
53 %endfor
54 %else:
54 %else:
55 <li>The resource may have been deleted.</li>
55 <li>The resource may have been deleted.</li>
56 <li>You may not have access to this repository.</li>
56 <li>You may not have access to this repository.</li>
57 <li>The link may be incorrect.</li>
57 <li>The link may be incorrect.</li>
58 %endif
58 %endif
59 </ul>
59 </ul>
60 </div>
60 </div>
61 <div class="inner-column">
61 <div class="inner-column">
62 <h4>Support</h4>
62 <h4>Support</h4>
63 <p>For help and support, go to the <a href="${c.visual.rhodecode_support_url}" target="_blank">${_('Support Page')}</a>.
63 <p>For help and support, go to the <a href="${c.visual.rhodecode_support_url}" target="_blank">${_('Support Page')}</a>.
64 It may be useful to include your log file; see the log file locations <a href="${h.route_url('enterprise_log_file_locations')}">here</a>.
64 It may be useful to include your log file; see the log file locations <a href="${h.route_url('enterprise_log_file_locations')}">here</a>.
65 </p>
65 </p>
66 % if c.show_exception_id:
67 <p>
68 Super Admin can see detailed traceback information from this exception by checking the below Exception ID.
69 Please include the below link for further details of this exception.
70
66
71 Exception ID: <a href="${c.exception_id_url}">${c.exception_id}</a>
72 </p>
73 % endif
74 </div>
67 </div>
75 <div class="inner-column">
68 <div class="inner-column">
76 <h4>Documentation</h4>
69 <h4>Documentation</h4>
77 <p>For more information, see <a href="${h.route_url('enterprise_docs')}">docs.rhodecode.com</a>.</p>
70 <p>For more information, see <a href="${h.route_url('enterprise_docs')}">docs.rhodecode.com</a>.</p>
78 </div>
71 </div>
79 </div>
72 </div>
73
74 % if c.show_exception_id:
75 <div class="sidebar" style="width: 130px">
76
77 </div>
78 <div class="main-content">
79 <p>
80 <strong>Exception ID: <code><a href="${c.exception_id_url}">${c.exception_id}</a></code> </strong> <br/>
81
82 Super Admins can see detailed traceback information from this exception by checking the below Exception ID.<br/>
83 Please include the above link for further details of this exception.
84 </p>
85 </div>
86 % endif
80 </div>
87 </div>
81
88
82 </body>
89 </body>
83
90
84 </html>
91 </html>
General Comments 0
You need to be logged in to leave comments. Login now