##// END OF EJS Templates
ui: update custom logos template to also allow header logo change.
ergo -
r3222:796b989f default
parent child Browse files
Show More
@@ -102,7 +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 <option value="custom_logo">${_('Custom logos')}</option>
106 </select>
106 </select>
107 </div>
107 </div>
108 <div style="padding: 10px 0px"></div>
108 <div style="padding: 10px 0px"></div>
@@ -253,17 +253,22 b''
253 <script id="custom_logo_tmpl" type='text/x-template'>
253 <script id="custom_logo_tmpl" type='text/x-template'>
254 <%text filter="h">
254 <%text filter="h">
255 <script>
255 <script>
256 // Set custom logo on login page.
256
257 $(document).ready(function(e) {
257 $(document).ready(function(e) {
258 // 1) Set custom logo on login/register pages.
258
259
259 // external, custom company logo
260 // external URL, custom company logo
260 //$('.sign-in-image').attr("src", "http://server.com/logo_path/custom_logo.png");
261 //$('.sign-in-image').attr("src", "http://server.com/logo_path/custom_logo.png");
261
262
262 // Alternative logo from static folder
263 // Alternative logo from static folder
263 $('.sign-in-image').attr("src", "/_static/rhodecode/images/RhodeCode_Logo_Black.png");
264 $('.sign-in-image').attr("src", "/_static/rhodecode/images/RhodeCode_Logo_Black.png");
264 // set width/height
265
266 // set width/height
265 $('.sign-in-image').css({"width": "300px", "height": "345px"});
267 $('.sign-in-image').css({"width": "300px", "height": "345px"});
266
268
269 // 2) Header logo on top bar
270 $('.logo-wrapper').find('img').attr('src', 'http://server.com/logo_path/custom_header_logo.png')
271
267 });
272 });
268 </script>
273 </script>
269 </%text>
274 </%text>
General Comments 0
You need to be logged in to leave comments. Login now