/kai/templates/snippets/bytag.mako

https://bitbucket.org/bbangert/kai/ · Mako · 8 lines · 8 code · 0 blank · 0 comment · 3 complexity · be59a868951810d736259741414fa1e9 MD5 · raw file

  1. <h1>${_('Snippets for tag: %s' % c.tag)}</h1>
  2. <ul>
  3. % for snippet in c.snippets:
  4. <li>${h.link_to(snippet.title, url=url('snippet', id=snippet.slug))} - ${format.datetime(snippet.created, "medium")}</li>
  5. % endfor
  6. </ul>
  7. <%def name="title()">${parent.title()} - ${_('Snippets for tag: %s' % c.tag)}</%def>
  8. <%inherit file="layout.mako" />