##// 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 102 <option value="clicky">Clicky</option>
103 103 <option value="server_announce">${_('Server Announcement')}</option>
104 104 <option value="flash_filtering">${_('Flash message filtering')}</option>
105 <option value="custom_logo">${_('Custom log-in logo')}</option>
105 106 </select>
106 107 </div>
107 108 <div style="padding: 10px 0px"></div>
@@ -212,7 +213,7 b''
212 213 // This can be used to send a global maintenance messages or other
213 214 // important messages to all users of the RhodeCode Enterprise system.
214 215
215 $(document).ready(function(e){
216 $(document).ready(function(e) {
216 217
217 218 // EDIT - put your message below
218 219 var message = "TYPE YOUR MESSAGE HERE";
@@ -248,6 +249,27 b''
248 249 </%text>
249 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 273 <script>
252 274 var pre_cm = initCodeMirror('rhodecode_pre_code', '', false);
253 275 var pre_old = pre_cm.getValue();
@@ -255,7 +277,7 b' var pre_old = pre_cm.getValue();'
255 277 var post_cm = initCodeMirror('rhodecode_post_code', '', false);
256 278 var post_old = post_cm.getValue();
257 279
258 var get_data = function(type, old){
280 var get_data = function(type, old) {
259 281 var get_tmpl = function(tmpl_name){
260 282 // unescape some stuff
261 283 return htmlEnDeCode.htmlDecode($('#'+tmpl_name+'_tmpl').html());
@@ -265,7 +287,8 b' var get_data = function(type, old){'
265 287 'ga': get_tmpl('ga'),
266 288 'clicky': get_tmpl('clicky'),
267 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 292 }[type]
270 293 };
271 294
General Comments 0
You need to be logged in to leave comments. Login now