##// 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 1 ## -*- coding: utf-8 -*-
2 2 <!DOCTYPE html>
3 3 <html xmlns="http://www.w3.org/1999/xhtml">
4 4 <head>
5 5 <title>Error - ${c.error_message}</title>
6 6 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7 7 <meta name="robots" content="index, nofollow"/>
8 8 <link rel="icon" href="${h.asset('images/favicon.ico')}" sizes="16x16 32x32" type="image/png" />
9 9
10 10 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
11 11 %if c.redirect_time:
12 12 <meta http-equiv="refresh" content="${c.redirect_time}; url=${c.url_redirect}"/>
13 13 %endif
14 14
15 15 <link rel="stylesheet" type="text/css" href="${h.asset('css/style.css', ver=c.rhodecode_version_hash)}" media="screen"/>
16 16 <!--[if IE]>
17 17 <link rel="stylesheet" type="text/css" href="${h.asset('css/ie.css')}" media="screen"/>
18 18 <![endif]-->
19 19 <style>body { background:#eeeeee; }</style>
20 20 <script type="text/javascript">
21 21 // register templateContext to pass template variables to JS
22 22 var templateContext = {timeago: {}};
23 23 </script>
24 24 <script type="text/javascript" src="${h.asset('js/scripts.js', ver=c.rhodecode_version_hash)}"></script>
25 25 </head>
26 26 <body>
27 27
28 28 <div class="wrapper error_page">
29 29 <div class="sidebar">
30 30 <a href="${h.route_path('home')}"><img class="error-page-logo" src="${h.asset('images/RhodeCode_Logo_Black.png')}" alt="RhodeCode"/></a>
31 31 </div>
32 32 <div class="main-content">
33 33 <h1>
34 34 <span class="error-branding">
35 35 ${h.branding(c.rhodecode_name)}
36 36 </span><br/>
37 37 ${c.error_message} | <span class="error_message">${c.error_explanation}</span>
38 38 </h1>
39 39 % if c.messages:
40 40 % for message in c.messages:
41 41 <div class="alert alert-${message.category}">${message}</div>
42 42 % endfor
43 43 % endif
44 44 %if c.redirect_time:
45 45 <p>${_('You will be redirected to %s in %s seconds') % (c.redirect_module,c.redirect_time)}</p>
46 46 %endif
47 47 <div class="inner-column">
48 48 <h4>Possible Causes</h4>
49 49 <ul>
50 50 % if c.causes:
51 51 %for cause in c.causes:
52 52 <li>${cause}</li>
53 53 %endfor
54 54 %else:
55 55 <li>The resource may have been deleted.</li>
56 56 <li>You may not have access to this repository.</li>
57 57 <li>The link may be incorrect.</li>
58 58 %endif
59 59 </ul>
60 60 </div>
61 61 <div class="inner-column">
62 62 <h4>Support</h4>
63 63 <p>For help and support, go to the <a href="${c.visual.rhodecode_support_url}" target="_blank">${_('Support Page')}</a>.
64 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 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 67 </div>
75 68 <div class="inner-column">
76 69 <h4>Documentation</h4>
77 70 <p>For more information, see <a href="${h.route_url('enterprise_docs')}">docs.rhodecode.com</a>.</p>
78 71 </div>
79 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 87 </div>
81 88
82 89 </body>
83 90
84 91 </html>
General Comments 0
You need to be logged in to leave comments. Login now