## -*- coding: utf-8 -*- <%inherit file="root.html"/>
${self.flash_msg()}
${next.main()}
### MAKO DEFS ### <%def name="flash_msg()"> <%include file="/base/flash_msg.html"/> <%def name="breadcrumbs()"> <%def name="admin_menu()"> ## admin menu used for people that have some admin resources <%def name="admin_menu_simple(repositories=None, repository_groups=None, user_groups=None)"> <%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"') %>

%if h.is_hg(c.rhodecode_db_repo): %endif %if h.is_git(c.rhodecode_db_repo): %endif ## public/private %if c.rhodecode_db_repo.private: %else: %endif ${h.repo_link(c.rhodecode_db_repo.groups_and_repo)} %if current == 'createfork': - ${_('Create fork')} %endif

<%def name="usermenu()"> ## USER MENU
  • avatar %if c.rhodecode_user.username != 'default': ${c.rhodecode_user.username} %if c.unread_notifications != 0: ${c.unread_notifications} %endif %else: ${_('Not logged in')} %endif
    %if c.rhodecode_user.username == 'default':

    ${_('Login to your account')}

    ${h.form(h.url('login_home',came_from=h.url.current()))}
    ${h.text('username',class_='focus')}
    ${h.password('password',class_='focus')}
    ${h.link_to(_('Forgot password ?'),h.url('reset_password'))}
    %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')(): ${h.link_to(_("Don't have an account ?"),h.url('register'))} %endif
    ${h.submit('sign_in',_('Log In'),class_="btn btn-mini")}
    ${h.end_form()} %else: %endif
  • <%def name="menu(current=None)"> <% def is_current(selected): if selected == current: return h.literal('class="current"') %>