## -*- coding: utf-8 -*-
<%inherit file="/base/base.html"/>
<%def name="title()">
${_('Gists')} · ${c.rhodecode_name}
%def>
<%def name="breadcrumbs_links()">
%if c.show_private:
${_('Private Gists for user %s') % c.rhodecode_user.username}
%else:
${_('Public Gists')}
%endif
- ${c.gists_pager.item_count}
%def>
<%def name="page_nav()">
${self.menu('gists')}
%def>
<%def name="main()">
${self.breadcrumbs()}
%if c.rhodecode_user.username != 'default':
-
${h.link_to(_(u'Create new gist'), h.url('new_gist'))}
%endif
%if c.gists_pager.item_count>0:
% for gist in c.gists_pager:
${h.person(gist.owner.full_contact)} /
gist:${gist.gist_access_id}
%if gist.gist_expires == -1:
${_('Expires')}: ${_('never')}
%else:
${_('Expires')}: ${h.age(h.time_to_datetime(gist.gist_expires))}
%endif
${_('Created')} ${h.age(gist.created_on)}
${gist.gist_description}
% endfor
%else:
${_('There are no gists yet')}
%endif
%def>