## -*- coding: utf-8 -*- <%inherit file="/base/base.html"/> <%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: · ${c.rhodecode_name} %endif <%def name="breadcrumbs_links()"> %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 - ${c.gists_pager.item_count} <%def name="page_nav()"> ${self.menu('gists')} <%def name="main()">
${self.breadcrumbs()} %if c.rhodecode_user.username != 'default': %endif
%if c.gists_pager.item_count>0: % for gist in c.gists_pager:
gravatar
${h.person(gist.owner.full_contact)} / gist: ${gist.gist_access_id}
${_('Created')} ${h.age(gist.created_on)} / %if gist.gist_expires == -1: ${_('Expires')}: ${_('never')} %else: ${_('Expires')}: ${h.age(h.time_to_datetime(gist.gist_expires))} %endif
${gist.gist_description}
% endfor
${c.gists_pager.pager('$link_previous ~2~ $link_next', **request.GET.mixed())}
%else:
${_('There are no gists yet')}
%endif