## -*- coding: utf-8 -*- <%inherit file="/base/base.mako"/> <%def name="title()"> %if c.show_private: ${_('Private Gists for user %s') % c.rhodecode_user.username} %elif c.show_public: ${_('Public Gists for user %s') % c.rhodecode_user.username} %else: ${_('Public Gists')} %endif %if c.rhodecode_name: · ${h.branding(c.rhodecode_name)} %endif <%def name="breadcrumbs_links()"> %if c.show_private and not c.show_public: ${_('Private Gists for user %s') % c.rhodecode_user.username} %elif c.show_public and not c.show_private: ${_('Public Gists for user %s') % c.rhodecode_user.username} %elif c.show_public and c.show_private: ${_('All Gists for user %s') % c.rhodecode_user.username} %else: ${_('All Public Gists')} %endif - 0 <%def name="menu_bar_nav()"> ${self.menu_items(active='gists')} <%def name="main()">
${self.breadcrumbs(class_="breadcrumbs block-left")} %if c.rhodecode_user.username != h.DEFAULT_USER:
  • ${_(u'Create New Gist')}
%endif
##main
    % if h.HasPermissionAll('hg.admin')('access admin gists page'):
  • ${_('All gists')}
  • %endif
  • ${_('All public')}
  • %if c.rhodecode_user.username != h.DEFAULT_USER:
  • ${_('My gists')}
  • ${_('My private')}
  • ${_('My public')}
  • %endif