Commit | Line | Data |
9dc3b9a5 |
1 | <table> |
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> |
20 | <td>[% item.modestr %]</td> |
21 | [% theact = item.type == 'tree' ? 'tree' : 'blob' -%] |
22 | <td class='filename'> |
1ab43e73 |
23 | <a href="[% c.uri_for(theact, {h=item.sha1, hb=commit.sha1, f=(path ? path _ '/' _ item.file : item.file)}) %]">[% item.file %]</a> |
9dc3b9a5 |
24 | </td> |
25 | <td class='action-list'> |
a6db5083 |
26 | <a href="[% c.uri_for(theact, {h=item.sha1, hb=commit.sha1, f=item.file}) %]">[% theact %]</a> |
27 | <a href="[% c.uri_for('history', {h=item.sha1, hb=commit.sha1, f=item.file}) %]">history</a> |
28 | [% IF item.type == 'blob' %] |
29 | <a href="[% c.uri_for('raw', {hb=commit.sha1, f=item.file}) %]">raw</a> |
30 | [% END %] |
9dc3b9a5 |
31 | </td> |
32 | </tr> |
33 | [% END %] |
34 | </tbody> |
9dc3b9a5 |
35 | </table> |