PageRenderTime 23ms CodeModel.GetById 21ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/kai/templates/snippets/index.mako

https://bitbucket.org/bbangert/kai/
Mako | 19 lines | 17 code | 2 blank | 0 comment | 5 complexity | 980cfa4bbf0141283232126e6e185a3f MD5 | raw file
 1<h1>Snippet Repository</h1>
 2<p>Pylons snippet repository is a place for pylites to share their code snippets with the community. Please only share fully functioning and tested snippets and include instructions so that novice and experienced Pylons users can benefit.</p>
 3
 4<h1>Latest Snippets</h1>
 5<ul>
 6% for snippet in c.snippets:
 7<li><a href="${url('snippet', id=snippet.slug)}">${snippet.title}</a> - ${widgets.format_timestamp(snippet.created)}</li>
 8% endfor
 9</ul>
10
11<h1>Latest Authors</h1>
12<ul>
13% for author in c.unique_authors:
14    <li>${h.link_to(author, url=url('snippet_author', id=author))}</li>
15% endfor
16</ul>
17<%namespace name="widgets" file="/widgets.mako" />
18<%def name="title()">${parent.title()} - ${_('Snippet Home')}</%def>
19<%inherit file="layout.mako" />