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