oceanwinder/themes/custom/templates/listing.tmpl

31 lines
658 B
Cheetah
Raw Normal View History

2019-10-24 21:27:44 +00:00
## -*- coding: utf-8 -*-
<%inherit file="base.tmpl"/>
<%namespace name="ui" file="ui_helper.tmpl"/>
<%block name="content">
${ui.breadcrumbs(crumbs)}
%if folders or files:
<ul>
% for name in folders:
<li><a href="${name|u}">📂&nbsp;${name|h}</a>
% endfor
% for name in files:
<li><a href="${name|u}.html">📄&nbsp;${name|h}</a>
% endfor
</ul>
%endif
% if code:
<h1>${title}
% if source_link:
<small><a href="${source_link}">(${messages("Source")})</a></small>
% endif
</h1>
${code}
% endif
</%block>
<%block name="sourcelink">
% if source_link and show_sourcelink:
${ui.show_sourcelink(source_link)}
% endif
</%block>