Mercurial > kallithea
view rhodecode/templates/admin/gists/index.html @ 3840:dc4644865e8b beta
Implemented simple gist functionality ref #530.
- creation of public/private gists with given lifetime
- rhodecode-gist CLI for quick gist creation
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 11 May 2013 20:24:02 +0200 |
parents | |
children | bec04f371579 |
line wrap: on
line source
## -*- 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()"> <div class="box"> <!-- box / title --> <div class="title"> ${self.breadcrumbs()} %if c.rhodecode_user.username != 'default': <ul class="links"> <li> <span>${h.link_to(_(u'Create new gist'), h.url('new_gist'))}</span> </li> </ul> %endif </div> %if c.gists_pager.item_count>0: % for gist in c.gists_pager: <div class="gist-item" style="padding:10px 20px 10px 15px"> <div class="gravatar"> <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(gist.owner.full_contact),24)}"/> </div> <div title="${gist.owner.full_contact}" class="user"> <b>${h.person(gist.owner.full_contact)}</b> / <b><a href="${h.url('gist',id=gist.gist_access_id)}">gist:${gist.gist_access_id}</a></b> <span style="color: #AAA"> %if gist.gist_expires == -1: ${_('Expires')}: ${_('never')} %else: ${_('Expires')}: ${h.age(h.time_to_datetime(gist.gist_expires))} %endif </span> </div> <div>${_('Created')} ${h.age(gist.created_on)} </div> <div style="border:0px;padding:10px 0px 0px 35px;color:#AAA">${gist.gist_description}</div> </div> % endfor <div class="notification-paginator"> <div class="pagination-wh pagination-left"> ${c.gists_pager.pager('$link_previous ~2~ $link_next')} </div> </div> %else: <div class="table">${_('There are no gists yet')}</div> %endif </div> </%def>