A new Riff-radio.org site with a static approach.

listing.tmpl 760B

123456789101112131415161718192021222324252627282930313233
  1. ## -*- coding: utf-8 -*-
  2. <%inherit file="base.tmpl"/>
  3. <%namespace name="ui" file="crumbs.tmpl" import="bar"/>
  4. <%block name="content">
  5. ${ui.bar(crumbs)}
  6. %if folders or files:
  7. <ul>
  8. % for name in folders:
  9. <li><a href="${name|u}"><i class="glyphicon glyphicon-folder-open"></i> ${name|h}</a>
  10. % endfor
  11. % for name in files:
  12. <li><a href="${name|u}.html"><i class="glyphicon glyphicon-file"></i> ${name|h}</a>
  13. % endfor
  14. </ul>
  15. %endif
  16. % if code:
  17. <h1>${title}
  18. % if source_link:
  19. <small><a href="${source_link}">(${messages("Source")})</a></small>
  20. % endif
  21. </h1>
  22. ${code}
  23. % endif
  24. </%block>
  25. <%block name="sourcelink">
  26. % if source_link:
  27. <li>
  28. <a href="${source_link}" id="sourcelink">${messages("Source")}</a>
  29. </li>
  30. % endif
  31. </%block>