Commit | Line | Data |
f78e75d8 |
1 | <table class='tree listing'> |
9dc3b9a5 |
2 | <thead> |
3 | <tr> |
7a88ffa4 |
4 | <th>mode</th> |
5 | <th>file</th> |
6 | <th>actions</th> |
7 | </tr> |
8 | </thead> |
9 | <tfoot> |
10 | <tr> |
9dc3b9a5 |
11 | <td>mode</td> |
12 | <td>file</td> |
13 | <td>actions</td> |
14 | </tr> |
7a88ffa4 |
15 | </tfoot> |
9dc3b9a5 |
16 | |
17 | <tbody> |
18 | [% FOREACH item IN tree_list %] |
19 | <tr> |
f78e75d8 |
20 | <td class='file-mode'>[% item.modestr %]</td> |
9dc3b9a5 |
21 | [% theact = item.type == 'tree' ? 'tree' : 'blob' -%] |
c046a52f |
22 | [% fullpath = path ? path _ '/' _ item.file : item.file %] |
f78e75d8 |
23 | <td class='file-name'> |
c046a52f |
24 | <a href="[% c.uri_for(theact, {h=item.sha1, hb=commit.sha1, f=fullpath}) %]">[% item.file %]</a> |
9dc3b9a5 |
25 | </td> |
26 | <td class='action-list'> |
c046a52f |
27 | <a href="[% c.uri_for(theact, {h=item.sha1, hb=commit.sha1, f=fullpath}) %]">[% theact %]</a> |
cce8c9b6 |
28 | <a href="[% c.uri_for('history', {h=item.sha1, hb=commit.sha1, f=fullpath}) %]">history</a> |
a6db5083 |
29 | [% IF item.type == 'blob' %] |
c046a52f |
30 | <a href="[% c.uri_for('raw', {hb=commit.sha1, f=fullpath}) %]">raw</a> |
a6db5083 |
31 | [% END %] |
9dc3b9a5 |
32 | </td> |
33 | </tr> |
34 | [% END %] |
35 | </tbody> |
9dc3b9a5 |
36 | </table> |