PageRenderTime 37ms CodeModel.GetById 21ms RepoModel.GetById 0ms 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. <h1>Latest Snippets</h1>
  4. <ul>
  5. % for snippet in c.snippets:
  6. <li><a href="${url('snippet', id=snippet.slug)}">${snippet.title}</a> - ${widgets.format_timestamp(snippet.created)}</li>
  7. % endfor
  8. </ul>
  9. <h1>Latest Authors</h1>
  10. <ul>
  11. % for author in c.unique_authors:
  12. <li>${h.link_to(author, url=url('snippet_author', id=author))}</li>
  13. % endfor
  14. </ul>
  15. <%namespace name="widgets" file="/widgets.mako" />
  16. <%def name="title()">${parent.title()} - ${_('Snippet Home')}</%def>
  17. <%inherit file="layout.mako" />