Change everything round to be /ref/ instead of /commit/ as this makes more sense
[catagits/Gitalist.git] / root / fragment / ref / history.tt2
1 [%
2   INCLUDE '_log_pager.tt2';
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>
27      <td class='sha1' title='[% line.sha1 %]'>[% INCLUDE '_chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %]</td>
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' %]
36        <a href="[% c.uri_for("tree", {h=line.sha1, hb=line.sha1}) %]">tree</a>
37       [% ELSIF filetype == 'blob' %]
38        <a href="[% c.uri_for("blob", {hb=line.sha1, f=filename}) %]">blob</a>
39       [% END %]
40        <a href="[% c.uri_for("commitdiff", {h=line.sha1}) %]">commitdiff</a>
41       [% IF filetype == 'blob' %]
42        <a href="[% c.uri_for("blobdiff", {hb="HEAD", hpb=line.sha1, f=filename}) %]">diff to current</a>
43        [% END %]
44      </td>
45     </tr>
46    [% END %]
47    </tbody>
48   </table>
49 [%
50   INCLUDE '_log_pager.tt2';
51 %]