##// END OF EJS Templates
top menu: show user menu as a menu option like others, now also with login name...
Mads Kiilerich -
r3205:f01540c6 beta
parent child Browse files
Show More
@@ -453,6 +453,8 b' div:hover > a.permalink {'
453 453 border-left: none;
454 454 border-right: 1px solid #2e5c89;
455 455 padding: 8px 6px 4px;
456 min-width: 16px;
457 min-height: 16px;
456 458 }
457 459
458 460 #header #header-inner #quick li span.icon_short {
@@ -2090,7 +2092,7 b' a.metatag[tag="license"]:hover {'
2090 2092 }
2091 2093 #quick_login{
2092 2094 min-height: 80px;
2093 margin: 37px 0 0 -251px;
2095 margin: 37px 0 0 -280px;
2094 2096 padding: 4px;
2095 2097 position: absolute;
2096 2098 width: 278px;
@@ -4528,30 +4530,18 b' form.comment-inline-form {'
4528 4530 float: left;
4529 4531 }
4530 4532
4531 .notifications{
4532 border-radius: 4px 4px 4px 4px;
4533 -webkit-border-radius: 4px;
4534 -moz-border-radius: 4px;
4535 float: right;
4536 margin: 20px 0px 0px 0px;
4537 position: absolute;
4538 text-align: center;
4539 width: 26px;
4540 z-index: 1000;
4541 }
4542 .notifications a{
4533 .notifications {
4534 padding: 2px 7px !important;
4535 margin: 7px -4px -7px 4px !important;
4536 text-align: center;
4543 4537 color:#888 !important;
4544 display: block;
4545 4538 font-size: 10px;
4546 4539 background-color: #DEDEDE !important;
4547 border-radius: 2px !important;
4548 -webkit-border-radius: 2px !important;
4549 -moz-border-radius: 2px !important;
4550 }
4551 .notifications a:hover{
4552 text-decoration: none !important;
4553 background-color: #EEEFFF !important;
4554 }
4540 border-radius: 4px !important;
4541 -webkit-border-radius: 4px !important;
4542 -moz-border-radius: 4px !important;
4543 }
4544
4555 4545 .notification-header{
4556 4546 padding-top:6px;
4557 4547 }
@@ -61,17 +61,24 b''
61 61 </%def>
62 62
63 63 <%def name="usermenu()">
64 <li>
65 <a class="menu_link" id="quick_login_link">
66 <span class="icon" style="background-image:url(${h.gravatar_url(c.rhodecode_user.email,16)}); background-repeat:no-repeat; background-position:center; ">
67 %if c.rhodecode_user.username != 'default' and c.unread_notifications != -1:
68 <span class="notifications" href="${h.url('notifications')}">${c.unread_notifications}</span>
69 %endif
70 </span>
71 <span>
72 %if c.rhodecode_user.username != 'default':
73 ${c.rhodecode_user.username}
74 %else:
75 ${_('Not logged in')}
76 %endif
77 </span>
78 </a>
79 </li>
80
64 81 <div class="user-menu">
65 <div class="container">
66 <div class="gravatar" id="quick_login_link">
67 <img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,24)}" />
68 </div>
69 %if c.rhodecode_user.username != 'default' and c.unread_notifications != 0:
70 <div class="notifications">
71 <a id="notification_counter" href="${h.url('notifications')}">${c.unread_notifications}</a>
72 </div>
73 %endif
74 </div>
75 82 <div id="quick_login" style="display:none">
76 83 %if c.rhodecode_user.username == 'default':
77 84 <h4>${_('Login to your account')}</h4>
General Comments 0
You need to be logged in to leave comments. Login now