comparison rhodecode/templates/base/base.html @ 3207:b9de46161c96 beta

make gravatar icon little bit bigger, re-use same img src like on other menu items, fix styling on unread inbox
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 23 Jan 2013 21:55:15 +0100
parents d4bb8de7382f
children 1ac47c961f70
comparison
equal deleted inserted replaced
3206:d4bb8de7382f 3207:b9de46161c96
61 </%def> 61 </%def>
62 62
63 <%def name="usermenu()"> 63 <%def name="usermenu()">
64 ## USER MENU 64 ## USER MENU
65 <li> 65 <li>
66 <a class="menu_link" id="quick_login_link"> 66 <a class="menu_link" id="quick_login_link">
67 <span class="icon" style="background-image:url(${h.gravatar_url(c.rhodecode_user.email,16)}); background-repeat:no-repeat; background-position:center; "> 67 <span class="icon" style="padding:5px 5px 0px 5px">
68 %if c.rhodecode_user.username != 'default' and c.unread_notifications != -1: 68 <img src="${h.gravatar_url(c.rhodecode_user.email,20)}" alt="avatar">
69 <span class="notifications" href="${h.url('notifications')}">${c.unread_notifications}</span> 69 </span>
70 %endif 70 %if c.rhodecode_user.username != 'default':
71 </span> 71 <span class="menu_link_user">${c.rhodecode_user.username}</span>
72 <span> 72 %if c.unread_notifications != 0:
73 %if c.rhodecode_user.username != 'default': 73 <span class="menu_link_notifications">${c.unread_notifications}</span>
74 ${c.rhodecode_user.username} 74 %endif
75 %else: 75 %else:
76 ${_('Not logged in')} 76 <span>${_('Not logged in')}</span>
77 %endif 77 %endif
78 </span> 78 </a>
79 </a>
80 79
81 <div class="user-menu"> 80 <div class="user-menu">
82 <div id="quick_login"> 81 <div id="quick_login">
83 %if c.rhodecode_user.username == 'default': 82 %if c.rhodecode_user.username == 'default':
84 <h4>${_('Login to your account')}</h4> 83 <h4>${_('Login to your account')}</h4>