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