##// END OF EJS Templates
visual: add change logo header template
marcink -
r3209:f819f4a2 default
parent child Browse files
Show More
@@ -102,6 +102,7 b''
102 <option value="clicky">Clicky</option>
102 <option value="clicky">Clicky</option>
103 <option value="server_announce">${_('Server Announcement')}</option>
103 <option value="server_announce">${_('Server Announcement')}</option>
104 <option value="flash_filtering">${_('Flash message filtering')}</option>
104 <option value="flash_filtering">${_('Flash message filtering')}</option>
105 <option value="custom_logo">${_('Custom log-in logo')}</option>
105 </select>
106 </select>
106 </div>
107 </div>
107 <div style="padding: 10px 0px"></div>
108 <div style="padding: 10px 0px"></div>
@@ -248,6 +249,27 b''
248 </%text>
249 </%text>
249 </script>
250 </script>
250
251
252
253 <script id="custom_logo_tmpl" type='text/x-template'>
254 <%text filter="h">
255 <script>
256 // Set custom logo on login page.
257 $(document).ready(function(e) {
258
259 // external, custom company logo
260 //$('.sign-in-image').attr("src", "http://server.com/logo_path/custom_logo.png");
261
262 // Alternative logo from static folder
263 $('.sign-in-image').attr("src", "/_static/rhodecode/images/RhodeCode_Logo_Black.png");
264 // set width/height
265 $('.sign-in-image').css({"width": "300px", "height": "345px"});
266
267 });
268 </script>
269 </%text>
270 </script>
271
272
251 <script>
273 <script>
252 var pre_cm = initCodeMirror('rhodecode_pre_code', '', false);
274 var pre_cm = initCodeMirror('rhodecode_pre_code', '', false);
253 var pre_old = pre_cm.getValue();
275 var pre_old = pre_cm.getValue();
@@ -265,7 +287,8 b' var get_data = function(type, old){'
265 'ga': get_tmpl('ga'),
287 'ga': get_tmpl('ga'),
266 'clicky': get_tmpl('clicky'),
288 'clicky': get_tmpl('clicky'),
267 'server_announce': get_tmpl('server_announce'),
289 'server_announce': get_tmpl('server_announce'),
268 'flash_filtering': get_tmpl('flash_filtering')
290 'flash_filtering': get_tmpl('flash_filtering'),
291 'custom_logo': get_tmpl('custom_logo')
269 }[type]
292 }[type]
270 };
293 };
271
294
General Comments 0
You need to be logged in to leave comments. Login now