]> git.ipfire.org Git - people/jschlag/pbs.git/blob - src/templates/modules/packages-files-table.html
Drop dependency on textile
[people/jschlag/pbs.git] / src / templates / modules / packages-files-table.html
1 <table class="table table-striped table-hover">
2 <tbody>
3 {% for file in filelist %}
4 <tr>
5 <td>
6 {{ format_filemode(file.type, file.mode) }}
7 </td>
8 <td>
9 {{ file.user }}:{{ file.group }}
10 </td>
11 <td>
12 {% if file.size is None %}
13 -
14 {% else %}
15 {{ format_size(file.size) }}
16 {% end %}
17 </td>
18 <td>
19 {{ file.name }}
20 </td>
21 <td>
22 <div class="btn-group">
23 {% if file.viewable %}
24 <a class="btn btn-mini" href="/package/{{ pkg.uuid }}/view{{ file.name }}">
25 <i class="icon-file"></i>
26 </a>
27 {% end %}
28 {% if file.downloadable %}
29 <a class="btn btn-mini" href="/package/{{ pkg.uuid }}/download{{ file.name }}">
30 <i class="icon-download"></i>
31 </a>
32 {% end %}
33 </div>
34 </td>
35 </tr>
36 {% end %}
37 </tbody>
38 </table>