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