##// END OF EJS Templates
quick login toggle
marcink -
r1318:9778e35e beta
parent child Browse files
Show More
@@ -35,6 +35,22
35 </div>
35 </div>
36 </div>
36 </div>
37 ${h.end_form()}
37 ${h.end_form()}
38 <script type="text/javascript">
39 YUE.on('quick_login_link','click',function(e){
40
41 if(YUD.hasClass('quick_login_link','enabled')){
42 YUD.setStyle('quick_login','display','none');
43 YUD.removeClass('quick_login_link','enabled');
44 }
45 else{
46 YUD.setStyle('quick_login','display','');
47 YUD.addClass('quick_login_link','enabled');
48 }
49 //make sure we don't redirect
50 YUE.preventDefault(e);
51 });
52
53 </script>
38 </div>
54 </div>
39
55
40 <div class="gravatar">
56 <div class="gravatar">
@@ -58,7 +74,7
58 </li>
74 </li>
59 %endif
75 %endif
60 %if c.rhodecode_user.username == 'default':
76 %if c.rhodecode_user.username == 'default':
61 <li class="last highlight">${h.link_to(u'Login',h.url('login_home'))}</li>
77 <li class="last highlight">${h.link_to(u'Login',h.url('login_home'),id='quick_login_link')}</li>
62 %else:
78 %else:
63 <li class="last highlight">${h.link_to(u'Log Out',h.url('logout_home'))}</li>
79 <li class="last highlight">${h.link_to(u'Log Out',h.url('logout_home'))}</li>
64 %endif
80 %endif
@@ -215,7 +231,7
215 <li ${is_current('summary')}>
231 <li ${is_current('summary')}>
216 <a title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}">
232 <a title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}">
217 <span class="icon">
233 <span class="icon">
218 <img src="${h.url("/images/icons/clipboard_16.png")}" alt="${_('Summary')}" />
234 <img src="${h.url('/images/icons/clipboard_16.png')}" alt="${_('Summary')}" />
219 </span>
235 </span>
220 <span>${_('Summary')}</span>
236 <span>${_('Summary')}</span>
221 </a>
237 </a>
@@ -231,7 +247,7
231 <li ${is_current('changelog')}>
247 <li ${is_current('changelog')}>
232 <a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=c.repo_name)}">
248 <a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=c.repo_name)}">
233 <span class="icon">
249 <span class="icon">
234 <img src="${h.url("/images/icons/time.png")}" alt="${_('Changelog')}" />
250 <img src="${h.url('/images/icons/time.png')}" alt="${_('Changelog')}" />
235 </span>
251 </span>
236 <span>${_('Changelog')}</span>
252 <span>${_('Changelog')}</span>
237 </a>
253 </a>
@@ -240,7 +256,7
240 <li ${is_current('switch_to')}>
256 <li ${is_current('switch_to')}>
241 <a title="${_('Switch to')}" href="#">
257 <a title="${_('Switch to')}" href="#">
242 <span class="icon">
258 <span class="icon">
243 <img src="${h.url("/images/icons/arrow_switch.png")}" alt="${_('Switch to')}" />
259 <img src="${h.url('/images/icons/arrow_switch.png')}" alt="${_('Switch to')}" />
244 </span>
260 </span>
245 <span>${_('Switch to')}</span>
261 <span>${_('Switch to')}</span>
246 </a>
262 </a>
@@ -274,7 +290,7
274 <li ${is_current('files')}>
290 <li ${is_current('files')}>
275 <a title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}">
291 <a title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}">
276 <span class="icon">
292 <span class="icon">
277 <img src="${h.url("/images/icons/file.png")}" alt="${_('Files')}" />
293 <img src="${h.url('/images/icons/file.png')}" alt="${_('Files')}" />
278 </span>
294 </span>
279 <span>${_('Files')}</span>
295 <span>${_('Files')}</span>
280 </a>
296 </a>
@@ -283,7 +299,7
283 <li ${is_current('options')}>
299 <li ${is_current('options')}>
284 <a title="${_('Options')}" href="#">
300 <a title="${_('Options')}" href="#">
285 <span class="icon">
301 <span class="icon">
286 <img src="${h.url("/images/icons/table_gear.png")}" alt="${_('Admin')}" />
302 <img src="${h.url('/images/icons/table_gear.png')}" alt="${_('Admin')}" />
287 </span>
303 </span>
288 <span>${_('Options')}</span>
304 <span>${_('Options')}</span>
289 </a>
305 </a>
@@ -322,7 +338,7
322 <li>
338 <li>
323 <a title="${_('Followers')}" href="${h.url('repo_followers_home',repo_name=c.repo_name)}">
339 <a title="${_('Followers')}" href="${h.url('repo_followers_home',repo_name=c.repo_name)}">
324 <span class="icon_short">
340 <span class="icon_short">
325 <img src="${h.url("/images/icons/heart.png")}" alt="${_('Followers')}" />
341 <img src="${h.url('/images/icons/heart.png')}" alt="${_('Followers')}" />
326 </span>
342 </span>
327 <span id="current_followers_count" class="short">${c.repository_followers}</span>
343 <span id="current_followers_count" class="short">${c.repository_followers}</span>
328 </a>
344 </a>
@@ -330,7 +346,7
330 <li>
346 <li>
331 <a title="${_('Forks')}" href="${h.url('repo_forks_home',repo_name=c.repo_name)}">
347 <a title="${_('Forks')}" href="${h.url('repo_forks_home',repo_name=c.repo_name)}">
332 <span class="icon_short">
348 <span class="icon_short">
333 <img src="${h.url("/images/icons/arrow_divide.png")}" alt="${_('Forks')}" />
349 <img src="${h.url('/images/icons/arrow_divide.png')}" alt="${_('Forks')}" />
334 </span>
350 </span>
335 <span class="short">${c.repository_forks}</span>
351 <span class="short">${c.repository_forks}</span>
336 </a>
352 </a>
@@ -343,7 +359,7
343 <li>
359 <li>
344 <a title="${_('Home')}" href="${h.url('home')}">
360 <a title="${_('Home')}" href="${h.url('home')}">
345 <span class="icon">
361 <span class="icon">
346 <img src="${h.url("/images/icons/home_16.png")}" alt="${_('Home')}" />
362 <img src="${h.url('/images/icons/home_16.png')}" alt="${_('Home')}" />
347 </span>
363 </span>
348 <span>${_('Home')}</span>
364 <span>${_('Home')}</span>
349 </a>
365 </a>
@@ -352,7 +368,7
352 <li>
368 <li>
353 <a title="${_('Journal')}" href="${h.url('journal')}">
369 <a title="${_('Journal')}" href="${h.url('journal')}">
354 <span class="icon">
370 <span class="icon">
355 <img src="${h.url("/images/icons/book.png")}" alt="${_('Journal')}" />
371 <img src="${h.url('/images/icons/book.png')}" alt="${_('Journal')}" />
356 </span>
372 </span>
357 <span>${_('Journal')}</span>
373 <span>${_('Journal')}</span>
358 </a>
374 </a>
@@ -361,7 +377,7
361 <li>
377 <li>
362 <a title="${_('Search')}" href="${h.url('search')}">
378 <a title="${_('Search')}" href="${h.url('search')}">
363 <span class="icon">
379 <span class="icon">
364 <img src="${h.url("/images/icons/search_16.png")}" alt="${_('Search')}" />
380 <img src="${h.url('/images/icons/search_16.png')}" alt="${_('Search')}" />
365 </span>
381 </span>
366 <span>${_('Search')}</span>
382 <span>${_('Search')}</span>
367 </a>
383 </a>
@@ -371,7 +387,7
371 <li ${is_current('admin')}>
387 <li ${is_current('admin')}>
372 <a title="${_('Admin')}" href="${h.url('admin_home')}">
388 <a title="${_('Admin')}" href="${h.url('admin_home')}">
373 <span class="icon">
389 <span class="icon">
374 <img src="${h.url("/images/icons/cog_edit.png")}" alt="${_('Admin')}" />
390 <img src="${h.url('/images/icons/cog_edit.png')}" alt="${_('Admin')}" />
375 </span>
391 </span>
376 <span>${_('Admin')}</span>
392 <span>${_('Admin')}</span>
377 </a>
393 </a>
General Comments 0
You need to be logged in to leave comments. Login now