Fixed the links in the history view.
[catagits/Gitalist.git] / root / fragment / ref / history.tt2
CommitLineData
ba2b01c7 1[%
18fdf3d0 2 INCLUDE 'inc/log_pager.tt2';
ba2b01c7 3%] <table class='history listing'>
4 <thead>
5 <tr>
6 <th>sha1</th>
7 <th>time</th>
8 <th>author</th>
9 <th>message</th>
10 <th>actions</th>
11 </tr>
12 </thead>
13
14 <tfoot>
15 <tr>
16 <td>sha1</td>
17 <td>time</td>
18 <td>author</td>
19 <td>message</td>
20 <td>actions</td>
21 </tr>
22 </tfoot>
23
24 <tbody>
25 [% FOREACH line IN log_lines %]
26 <tr>
18fdf3d0 27 <td class='sha1' title='[% line.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %]</td>
ba2b01c7 28 <td class='time-since' title='[% line.authored_time %]'>[% time_since(line.authored_time) %]</td>
29 <td class='author'>[% line.author.name | html %]</td>
30 <td>
31 [% short_cmt(line.comment) | html %]
32 [% INCLUDE '_refs.tt2' object = line.0 %]
33 </td>
34 <td class='action-list'>
35 [% IF filetype == 'tree' %]
7998de12 36 <a href="[% c.uri_for_action("/ref/tree", [Repository.name, line.sha1], filename) %]">blob</a>
ba2b01c7 37 [% ELSIF filetype == 'blob' %]
7998de12 38 <a href="[% c.uri_for_action("/ref/blob", [Repository.name, line.sha1], filename) %]">blob</a>
ba2b01c7 39 [% END %]
7998de12 40 <a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, line.sha1]) %]">commitdiff</a>
ba2b01c7 41 [% IF filetype == 'blob' %]
7998de12 42 <a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, line.sha1], 'HEAD', filename) %]">diff to current</a>
ba2b01c7 43 [% END %]
44 </td>
45 </tr>
46 [% END %]
47 </tbody>
48 </table>
49[%
18fdf3d0 50 INCLUDE 'inc/log_pager.tt2';
ba2b01c7 51%]