Another freshly added action - /tree.
[catagits/Gitalist.git] / templates / tree.tt2
CommitLineData
b3fa97cd 1[% INCLUDE 'commit-nav.tt2' object = commit %]
2
3<div class='commit-message'>
4[% commit.comment.substr(0, 85) %] ...
5</div>
6
7<table>
8 <thead>
9 <tr>
10 <td>mode</td>
11 <td>file</td>
12 <td>actions</td>
13 </tr>
14 </thead>
15
16 <tbody>
17 [% FOREACH item IN c.model('Git').list_tree(commit.sha1) %]
18 <tr>
19 <td>[% item.modestr %]</td>
20 [% theact = item.type == 'tree' ? 'tree' : 'blob' -%]
21 <td>
22 <a href="/[% theact %]?h=[% item.object %];hb=[% commit.sha1 %];f=[% item.file %]">[% item.file %]</a>
23 </td>
24 <td class='action-list'>
25 <a href="/[% theact %]?p=[% project %];h=[% item.object %]">[% theact %]</a>
26 <a href="/history?p=[% project %];h=[% item.object %]">history</a>
27 <a href="/raw?p=[% project %];h=[% item.object %]">raw</a>
28 </td>
29 </tr>
30 [% END %]
31 </tbody>
32
33 <tfoot>
34 <tr>
35 <td>mode</td>
36 <td>file</td>
37 <td>actions</td>
38 </tr>
39 </tfoot>
40</table>