~raoul-snyman/+junk/ubuntuza-site

« back to all changes in this revision

Viewing changes to themes/bootstrap3/templates/listing.tmpl

  • Committer: Raoul Snyman
  • Date: 2014-12-18 19:58:47 UTC
  • Revision ID: raoul@snyman.info-20141218195847-xppkavltwidgo3fh
Initial import

Show diffs side-by-side

added added

removed removed

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