Show More
@@ -1,150 +1,149 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | <!DOCTYPE html> |
|
2 | <!DOCTYPE html> | |
3 |
|
3 | |||
4 | <% |
|
4 | <% | |
5 | c.template_context['repo_name'] = getattr(c, 'repo_name', '') |
|
5 | c.template_context['repo_name'] = getattr(c, 'repo_name', '') | |
6 | go_import_header = '' |
|
6 | go_import_header = '' | |
7 | if hasattr(c, 'rhodecode_db_repo'): |
|
7 | if hasattr(c, 'rhodecode_db_repo'): | |
8 | c.template_context['repo_type'] = c.rhodecode_db_repo.repo_type |
|
8 | c.template_context['repo_type'] = c.rhodecode_db_repo.repo_type | |
9 | c.template_context['repo_landing_commit'] = c.rhodecode_db_repo.landing_rev[1] |
|
9 | c.template_context['repo_landing_commit'] = c.rhodecode_db_repo.landing_rev[1] | |
10 |
|
10 | |||
11 | if getattr(c, 'repo_group', None): |
|
11 | if getattr(c, 'repo_group', None): | |
12 | c.template_context['repo_group_id'] = c.repo_group.group_id |
|
12 | c.template_context['repo_group_id'] = c.repo_group.group_id | |
13 |
|
13 | |||
14 | if getattr(c, 'rhodecode_user', None) and c.rhodecode_user.user_id: |
|
14 | if getattr(c, 'rhodecode_user', None) and c.rhodecode_user.user_id: | |
15 | c.template_context['rhodecode_user']['username'] = c.rhodecode_user.username |
|
15 | c.template_context['rhodecode_user']['username'] = c.rhodecode_user.username | |
16 | c.template_context['rhodecode_user']['email'] = c.rhodecode_user.email |
|
16 | c.template_context['rhodecode_user']['email'] = c.rhodecode_user.email | |
17 | c.template_context['rhodecode_user']['notification_status'] = c.rhodecode_user.get_instance().user_data.get('notification_status', True) |
|
17 | c.template_context['rhodecode_user']['notification_status'] = c.rhodecode_user.get_instance().user_data.get('notification_status', True) | |
18 | c.template_context['rhodecode_user']['first_name'] = c.rhodecode_user.first_name |
|
18 | c.template_context['rhodecode_user']['first_name'] = c.rhodecode_user.first_name | |
19 | c.template_context['rhodecode_user']['last_name'] = c.rhodecode_user.last_name |
|
19 | c.template_context['rhodecode_user']['last_name'] = c.rhodecode_user.last_name | |
20 |
|
20 | |||
21 | c.template_context['visual']['default_renderer'] = h.get_visual_attr(c, 'default_renderer') |
|
21 | c.template_context['visual']['default_renderer'] = h.get_visual_attr(c, 'default_renderer') | |
22 | c.template_context['default_user'] = { |
|
22 | c.template_context['default_user'] = { | |
23 | 'username': h.DEFAULT_USER, |
|
23 | 'username': h.DEFAULT_USER, | |
24 | 'user_id': 1 |
|
24 | 'user_id': 1 | |
25 | } |
|
25 | } | |
26 |
|
26 | |||
27 | %> |
|
27 | %> | |
28 | <html xmlns="http://www.w3.org/1999/xhtml"> |
|
28 | <html xmlns="http://www.w3.org/1999/xhtml"> | |
29 | <head> |
|
29 | <head> | |
30 |
|
||||
31 | <script src="${h.asset('js/vendors/webcomponentsjs/custom-elements-es5-adapter.js', ver=c.rhodecode_version_hash)}"></script> |
|
|||
32 | <script src="${h.asset('js/vendors/webcomponentsjs/webcomponents-bundle.js', ver=c.rhodecode_version_hash)}"></script> |
|
|||
33 | <title>${self.title()}</title> |
|
30 | <title>${self.title()}</title> | |
34 | <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> |
|
31 | <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
35 |
|
32 | |||
36 | ${h.go_import_header(request, getattr(c, 'rhodecode_db_repo', None))} |
|
33 | ${h.go_import_header(request, getattr(c, 'rhodecode_db_repo', None))} | |
37 |
|
34 | |||
38 | % if 'safari' in (request.user_agent or '').lower(): |
|
35 | % if 'safari' in (request.user_agent or '').lower(): | |
39 | <meta name="referrer" content="origin"> |
|
36 | <meta name="referrer" content="origin"> | |
40 | % else: |
|
37 | % else: | |
41 | <meta name="referrer" content="origin-when-cross-origin"> |
|
38 | <meta name="referrer" content="origin-when-cross-origin"> | |
42 | % endif |
|
39 | % endif | |
43 |
|
40 | |||
44 | <%def name="robots()"> |
|
41 | <%def name="robots()"> | |
45 | <meta name="robots" content="index, nofollow"/> |
|
42 | <meta name="robots" content="index, nofollow"/> | |
46 | </%def> |
|
43 | </%def> | |
47 | ${self.robots()} |
|
44 | ${self.robots()} | |
48 | <link rel="icon" href="${h.asset('images/favicon.ico', ver=c.rhodecode_version_hash)}" sizes="16x16 32x32" type="image/png" /> |
|
45 | <link rel="icon" href="${h.asset('images/favicon.ico', ver=c.rhodecode_version_hash)}" sizes="16x16 32x32" type="image/png" /> | |
|
46 | <script src="${h.asset('js/vendors/webcomponentsjs/custom-elements-es5-adapter.js', ver=c.rhodecode_version_hash)}"></script> | |||
|
47 | <script src="${h.asset('js/vendors/webcomponentsjs/webcomponents-bundle.js', ver=c.rhodecode_version_hash)}"></script> | |||
49 |
|
48 | |||
50 | ## CSS definitions |
|
49 | ## CSS definitions | |
51 | <%def name="css()"> |
|
50 | <%def name="css()"> | |
52 | <link rel="stylesheet" type="text/css" href="${h.asset('css/style.css', ver=c.rhodecode_version_hash)}" media="screen"/> |
|
51 | <link rel="stylesheet" type="text/css" href="${h.asset('css/style.css', ver=c.rhodecode_version_hash)}" media="screen"/> | |
53 | ## EXTRA FOR CSS |
|
52 | ## EXTRA FOR CSS | |
54 | ${self.css_extra()} |
|
53 | ${self.css_extra()} | |
55 | </%def> |
|
54 | </%def> | |
56 | ## CSS EXTRA - optionally inject some extra CSS stuff needed for specific websites |
|
55 | ## CSS EXTRA - optionally inject some extra CSS stuff needed for specific websites | |
57 | <%def name="css_extra()"> |
|
56 | <%def name="css_extra()"> | |
58 | </%def> |
|
57 | </%def> | |
59 |
|
58 | |||
60 | ${self.css()} |
|
59 | ${self.css()} | |
61 |
|
60 | |||
62 | ## JAVASCRIPT |
|
61 | ## JAVASCRIPT | |
63 | <%def name="js()"> |
|
62 | <%def name="js()"> | |
64 |
|
63 | |||
65 | <script src="${h.asset('js/rhodecode/i18n/%s.js' % c.language, ver=c.rhodecode_version_hash)}"></script> |
|
64 | <script src="${h.asset('js/rhodecode/i18n/%s.js' % c.language, ver=c.rhodecode_version_hash)}"></script> | |
66 | <script type="text/javascript"> |
|
65 | <script type="text/javascript"> | |
67 | // register templateContext to pass template variables to JS |
|
66 | // register templateContext to pass template variables to JS | |
68 | var templateContext = ${h.json.dumps(c.template_context)|n}; |
|
67 | var templateContext = ${h.json.dumps(c.template_context)|n}; | |
69 |
|
68 | |||
70 | var APPLICATION_URL = "${h.route_path('home').rstrip('/')}"; |
|
69 | var APPLICATION_URL = "${h.route_path('home').rstrip('/')}"; | |
71 | var APPLICATION_PLUGINS = []; |
|
70 | var APPLICATION_PLUGINS = []; | |
72 | var ASSET_URL = "${h.asset('')}"; |
|
71 | var ASSET_URL = "${h.asset('')}"; | |
73 | var DEFAULT_RENDERER = "${h.get_visual_attr(c, 'default_renderer')}"; |
|
72 | var DEFAULT_RENDERER = "${h.get_visual_attr(c, 'default_renderer')}"; | |
74 | var CSRF_TOKEN = "${getattr(c, 'csrf_token', '')}"; |
|
73 | var CSRF_TOKEN = "${getattr(c, 'csrf_token', '')}"; | |
75 |
|
74 | |||
76 | var APPENLIGHT = { |
|
75 | var APPENLIGHT = { | |
77 | enabled: ${'true' if getattr(c, 'appenlight_enabled', False) else 'false'}, |
|
76 | enabled: ${'true' if getattr(c, 'appenlight_enabled', False) else 'false'}, | |
78 | key: '${getattr(c, "appenlight_api_public_key", "")}', |
|
77 | key: '${getattr(c, "appenlight_api_public_key", "")}', | |
79 | % if getattr(c, 'appenlight_server_url', None): |
|
78 | % if getattr(c, 'appenlight_server_url', None): | |
80 | serverUrl: '${getattr(c, "appenlight_server_url", "")}', |
|
79 | serverUrl: '${getattr(c, "appenlight_server_url", "")}', | |
81 | % endif |
|
80 | % endif | |
82 | requestInfo: { |
|
81 | requestInfo: { | |
83 | % if getattr(c, 'rhodecode_user', None): |
|
82 | % if getattr(c, 'rhodecode_user', None): | |
84 | ip: '${c.rhodecode_user.ip_addr}', |
|
83 | ip: '${c.rhodecode_user.ip_addr}', | |
85 | username: '${c.rhodecode_user.username}' |
|
84 | username: '${c.rhodecode_user.username}' | |
86 | % endif |
|
85 | % endif | |
87 | }, |
|
86 | }, | |
88 | tags: { |
|
87 | tags: { | |
89 | rhodecode_version: '${c.rhodecode_version}', |
|
88 | rhodecode_version: '${c.rhodecode_version}', | |
90 | rhodecode_edition: '${c.rhodecode_edition}' |
|
89 | rhodecode_edition: '${c.rhodecode_edition}' | |
91 | } |
|
90 | } | |
92 | }; |
|
91 | }; | |
93 |
|
92 | |||
94 | </script> |
|
93 | </script> | |
95 | <%include file="/base/plugins_base.mako"/> |
|
94 | <%include file="/base/plugins_base.mako"/> | |
96 | <!--[if lt IE 9]> |
|
95 | <!--[if lt IE 9]> | |
97 | <script language="javascript" type="text/javascript" src="${h.asset('js/src/excanvas.min.js')}"></script> |
|
96 | <script language="javascript" type="text/javascript" src="${h.asset('js/src/excanvas.min.js')}"></script> | |
98 | <![endif]--> |
|
97 | <![endif]--> | |
99 | <script language="javascript" type="text/javascript" src="${h.asset('js/rhodecode/routes.js', ver=c.rhodecode_version_hash)}"></script> |
|
98 | <script language="javascript" type="text/javascript" src="${h.asset('js/rhodecode/routes.js', ver=c.rhodecode_version_hash)}"></script> | |
100 | <script> var alertMessagePayloads = ${h.flash.json_alerts(request=request)|n}; </script> |
|
99 | <script> var alertMessagePayloads = ${h.flash.json_alerts(request=request)|n}; </script> | |
101 | ## avoide escaping the %N |
|
100 | ## avoide escaping the %N | |
102 | <script language="javascript" type="text/javascript" src="${h.asset('js/scripts.js', ver=c.rhodecode_version_hash)}"></script> |
|
101 | <script language="javascript" type="text/javascript" src="${h.asset('js/scripts.js', ver=c.rhodecode_version_hash)}"></script> | |
103 | <script>CodeMirror.modeURL = "${h.asset('') + 'js/mode/%N/%N.js?ver='+c.rhodecode_version_hash}";</script> |
|
102 | <script>CodeMirror.modeURL = "${h.asset('') + 'js/mode/%N/%N.js?ver='+c.rhodecode_version_hash}";</script> | |
104 |
|
103 | |||
105 |
|
104 | |||
106 | ## JAVASCRIPT EXTRA - optionally inject some extra JS for specificed templates |
|
105 | ## JAVASCRIPT EXTRA - optionally inject some extra JS for specificed templates | |
107 | ${self.js_extra()} |
|
106 | ${self.js_extra()} | |
108 |
|
107 | |||
109 | <script type="text/javascript"> |
|
108 | <script type="text/javascript"> | |
110 | Rhodecode = (function() { |
|
109 | Rhodecode = (function() { | |
111 | function _Rhodecode() { |
|
110 | function _Rhodecode() { | |
112 | this.comments = new CommentsController(); |
|
111 | this.comments = new CommentsController(); | |
113 | } |
|
112 | } | |
114 | return new _Rhodecode(); |
|
113 | return new _Rhodecode(); | |
115 | })(); |
|
114 | })(); | |
116 |
|
115 | |||
117 | $(document).ready(function(){ |
|
116 | $(document).ready(function(){ | |
118 | show_more_event(); |
|
117 | show_more_event(); | |
119 | timeagoActivate(); |
|
118 | timeagoActivate(); | |
120 | clipboardActivate(); |
|
119 | clipboardActivate(); | |
121 | }) |
|
120 | }) | |
122 | </script> |
|
121 | </script> | |
123 |
|
122 | |||
124 | </%def> |
|
123 | </%def> | |
125 |
|
124 | |||
126 | ## JAVASCRIPT EXTRA - optionally inject some extra JS for specificed templates |
|
125 | ## JAVASCRIPT EXTRA - optionally inject some extra JS for specificed templates | |
127 | <%def name="js_extra()"></%def> |
|
126 | <%def name="js_extra()"></%def> | |
128 | ${self.js()} |
|
127 | ${self.js()} | |
129 |
|
128 | |||
130 | <%def name="head_extra()"></%def> |
|
129 | <%def name="head_extra()"></%def> | |
131 | ${self.head_extra()} |
|
130 | ${self.head_extra()} | |
132 | ## extra stuff |
|
131 | ## extra stuff | |
133 | %if c.pre_code: |
|
132 | %if c.pre_code: | |
134 | ${c.pre_code|n} |
|
133 | ${c.pre_code|n} | |
135 | %endif |
|
134 | %endif | |
136 | </head> |
|
135 | </head> | |
137 | <body id="body"> |
|
136 | <body id="body"> | |
138 | <noscript> |
|
137 | <noscript> | |
139 | <div class="noscript-error"> |
|
138 | <div class="noscript-error"> | |
140 | ${_('Please enable JavaScript to use RhodeCode Enterprise')} |
|
139 | ${_('Please enable JavaScript to use RhodeCode Enterprise')} | |
141 | </div> |
|
140 | </div> | |
142 | </noscript> |
|
141 | </noscript> | |
143 |
|
142 | |||
144 | ${next.body()} |
|
143 | ${next.body()} | |
145 | %if c.post_code: |
|
144 | %if c.post_code: | |
146 | ${c.post_code|n} |
|
145 | ${c.post_code|n} | |
147 | %endif |
|
146 | %endif | |
148 | <rhodecode-app></rhodecode-app> |
|
147 | <rhodecode-app></rhodecode-app> | |
149 | </body> |
|
148 | </body> | |
150 | </html> |
|
149 | </html> |
@@ -1,90 +1,93 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" /> |
|
|||
9 |
|
8 | |||
10 | <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> |
|
9 | <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
11 | %if c.redirect_time: |
|
10 | %if c.redirect_time: | |
12 | <meta http-equiv="refresh" content="${c.redirect_time}; url=${c.url_redirect}"/> |
|
11 | <meta http-equiv="refresh" content="${c.redirect_time}; url=${c.url_redirect}"/> | |
13 | %endif |
|
12 | %endif | |
14 |
|
13 | |||
|
14 | <link rel="icon" href="${h.asset('images/favicon.ico', ver=c.rhodecode_version_hash)}" sizes="16x16 32x32" type="image/png" /> | |||
|
15 | <script src="${h.asset('js/vendors/webcomponentsjs/custom-elements-es5-adapter.js', ver=c.rhodecode_version_hash)}"></script> | |||
|
16 | <script src="${h.asset('js/vendors/webcomponentsjs/webcomponents-bundle.js', ver=c.rhodecode_version_hash)}"></script> | |||
|
17 | ||||
15 | <link rel="stylesheet" type="text/css" href="${h.asset('css/style.css', ver=c.rhodecode_version_hash)}" media="screen"/> |
|
18 | <link rel="stylesheet" type="text/css" href="${h.asset('css/style.css', ver=c.rhodecode_version_hash)}" media="screen"/> | |
16 | <style>body { background:#eeeeee; }</style> |
|
19 | <style>body { background:#eeeeee; }</style> | |
17 | <script type="text/javascript"> |
|
20 | <script type="text/javascript"> | |
18 | // register templateContext to pass template variables to JS |
|
21 | // register templateContext to pass template variables to JS | |
19 | var templateContext = {timeago: {}}; |
|
22 | var templateContext = {timeago: {}}; | |
20 | </script> |
|
23 | </script> | |
21 | <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> | |
22 | </head> |
|
25 | </head> | |
23 | <body> |
|
26 | <body> | |
24 |
|
27 | |||
25 | <div class="wrapper error_page"> |
|
28 | <div class="wrapper error_page"> | |
26 | <div class="sidebar"> |
|
29 | <div class="sidebar"> | |
27 | <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> | |
28 | </div> |
|
31 | </div> | |
29 | <div class="main-content"> |
|
32 | <div class="main-content"> | |
30 | <h1> |
|
33 | <h1> | |
31 | <span class="error-branding"> |
|
34 | <span class="error-branding"> | |
32 | ${h.branding(c.rhodecode_name)} |
|
35 | ${h.branding(c.rhodecode_name)} | |
33 | </span><br/> |
|
36 | </span><br/> | |
34 | ${c.error_message} |
|
37 | ${c.error_message} | |
35 | <br/> |
|
38 | <br/> | |
36 | <span class="error_message">${c.error_explanation}</span> |
|
39 | <span class="error_message">${c.error_explanation}</span> | |
37 | </h1> |
|
40 | </h1> | |
38 | % if c.messages: |
|
41 | % if c.messages: | |
39 | % for message in c.messages: |
|
42 | % for message in c.messages: | |
40 | <div class="alert alert-${message.category}">${message}</div> |
|
43 | <div class="alert alert-${message.category}">${message}</div> | |
41 | % endfor |
|
44 | % endfor | |
42 | % endif |
|
45 | % endif | |
43 | %if c.redirect_time: |
|
46 | %if c.redirect_time: | |
44 | <p>${_('You will be redirected to %s in %s seconds') % (c.redirect_module,c.redirect_time)}</p> |
|
47 | <p>${_('You will be redirected to %s in %s seconds') % (c.redirect_module,c.redirect_time)}</p> | |
45 | %endif |
|
48 | %endif | |
46 | <div class="inner-column"> |
|
49 | <div class="inner-column"> | |
47 | <h4>Possible Causes</h4> |
|
50 | <h4>Possible Causes</h4> | |
48 | <ul> |
|
51 | <ul> | |
49 | % if c.causes: |
|
52 | % if c.causes: | |
50 | %for cause in c.causes: |
|
53 | %for cause in c.causes: | |
51 | <li>${cause}</li> |
|
54 | <li>${cause}</li> | |
52 | %endfor |
|
55 | %endfor | |
53 | %else: |
|
56 | %else: | |
54 | <li>The resource may have been deleted.</li> |
|
57 | <li>The resource may have been deleted.</li> | |
55 | <li>You may not have access to this repository.</li> |
|
58 | <li>You may not have access to this repository.</li> | |
56 | <li>The link may be incorrect.</li> |
|
59 | <li>The link may be incorrect.</li> | |
57 | %endif |
|
60 | %endif | |
58 | </ul> |
|
61 | </ul> | |
59 | </div> |
|
62 | </div> | |
60 | <div class="inner-column"> |
|
63 | <div class="inner-column"> | |
61 | <h4>Support</h4> |
|
64 | <h4>Support</h4> | |
62 | <p>For help and support, go to the <a href="${c.visual.rhodecode_support_url}" target="_blank">${_('Support Page')}</a>. |
|
65 | <p>For help and support, go to the <a href="${c.visual.rhodecode_support_url}" target="_blank">${_('Support Page')}</a>. | |
63 | 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>. |
|
66 | 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 | </p> |
|
67 | </p> | |
65 |
|
68 | |||
66 | </div> |
|
69 | </div> | |
67 | <div class="inner-column"> |
|
70 | <div class="inner-column"> | |
68 | <h4>Documentation</h4> |
|
71 | <h4>Documentation</h4> | |
69 | <p>For more information, see <a href="${h.route_url('enterprise_docs')}">docs.rhodecode.com</a>.</p> |
|
72 | <p>For more information, see <a href="${h.route_url('enterprise_docs')}">docs.rhodecode.com</a>.</p> | |
70 | </div> |
|
73 | </div> | |
71 | </div> |
|
74 | </div> | |
72 |
|
75 | |||
73 | % if c.show_exception_id: |
|
76 | % if c.show_exception_id: | |
74 | <div class="sidebar" style="width: 130px"> |
|
77 | <div class="sidebar" style="width: 130px"> | |
75 |
|
78 | |||
76 | </div> |
|
79 | </div> | |
77 | <div class="main-content"> |
|
80 | <div class="main-content"> | |
78 | <p> |
|
81 | <p> | |
79 | <strong>Exception ID: <code><a href="${c.exception_id_url}">${c.exception_id}</a></code> </strong> <br/> |
|
82 | <strong>Exception ID: <code><a href="${c.exception_id_url}">${c.exception_id}</a></code> </strong> <br/> | |
80 |
|
83 | |||
81 | Super Admins can see detailed traceback information from this exception by checking the below Exception ID.<br/> |
|
84 | Super Admins can see detailed traceback information from this exception by checking the below Exception ID.<br/> | |
82 | Please include the above link for further details of this exception. |
|
85 | Please include the above link for further details of this exception. | |
83 | </p> |
|
86 | </p> | |
84 | </div> |
|
87 | </div> | |
85 | % endif |
|
88 | % endif | |
86 | </div> |
|
89 | </div> | |
87 |
|
90 | |||
88 | </body> |
|
91 | </body> | |
89 |
|
92 | |||
90 | </html> |
|
93 | </html> |
General Comments 0
You need to be logged in to leave comments.
Login now