changeset 5679:a78503ebf512

design: make top-right profile button into an actual link If a user is logged in, make the avatar, username and notification count into a link to "My Notifications".
author Søren Løvborg <sorenl@unity3d.com>
date Thu, 24 Sep 2015 15:42:28 +0200
parents 75d89f00a4b5
children 38fa9fe39baa
files kallithea/templates/base/base.html
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/templates/base/base.html	Tue Jan 05 18:51:07 2016 +0100
+++ b/kallithea/templates/base/base.html	Thu Sep 24 15:42:28 2015 +0200
@@ -360,7 +360,11 @@
 
     ## USER MENU
     <li>
-      <a class="menu_link childs" id="quick_login_link">
+      <a class="menu_link childs" id="quick_login_link"
+        %if c.authuser.username != 'default':
+          href="${h.url('notifications')}"
+        %endif
+      >
           <span class="icon">
             ${h.gravatar(c.authuser.email, size=20)}
           </span>