aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/data/themes/base/templates/listing.tmpl
blob: ef2dfd65d230bd3039c2b97a653b70c1d654dea7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## -*- 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|h}" class="listing-folder">${name|h}</a>
% endfor
% for name in files:
    <li><a href="${name|h}.html" class="listing-file">${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>