diff --git a/rhodecode/templates/base/base.html b/rhodecode/templates/base/base.html --- a/rhodecode/templates/base/base.html +++ b/rhodecode/templates/base/base.html @@ -61,11 +61,144 @@ +<%def name="context_bar(current=None)"> + %if c.repo_name: + ${repo_context_bar(current)} + %endif + + +<%def name="admin_menu()"> + + + +<%def name="admin_menu_simple()"> + + + +<%def name="repo_context_bar(current=None)"> + <% + def follow_class(): + if c.repository_following: + return h.literal('following') + else: + return h.literal('follow') + %> + <% + def is_current(selected): + if selected == current: + return h.literal('class="current"') + %> + + +
+
+ + ## TODO: this check feels wrong, it would be better to have a check for permissions + ## also it feels like a job for the controller + %if c.rhodecode_user.username != 'default': + + %endif +
+
+ + +
+
+ + + + <%def name="usermenu()"> ## USER MENU
  • - - + + avatar %if c.rhodecode_user.username != 'default': @@ -122,12 +255,12 @@
    ${c.rhodecode_user.full_name_or_username}
    gravatar
    -
    ${_('Notifications')}
    -
    ${_('Unread')}: ${c.unread_notifications}
    + ##
    ${_('Notifications')}
    +
    ${_('Unread notifications')}: ${c.unread_notifications}