Template cleanups. Move _template to inc/template, remove currently spurious includes...
[catagits/Gitalist.git] / root / fragment / repository / shortlog.tt2
1 <div class='content'>
2 [%
3   INCLUDE 'inc/log_pager.tt2';
4 %]<table class='shortlog listing'>
5  <thead>
6   <tr>
7    <th>sha1</th>
8    <th>time</th>
9    <th>author</th>
10    <th>message</th>
11    <th>actions</th>
12   </tr>
13  </thead>
14
15  <tfoot>
16   <tr>
17    <td>sha1</td>
18    <td>time</td>
19    <td>author</td>
20    <td>message</td>
21    <td>actions</td>
22   </tr>
23  </tfoot>
24
25  <tbody>
26  [% FOREACH line IN log_lines %]
27   <tr>
28    <td class='sha1' title='[% line.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %]</td>
29    <td class='time-since' title='[% line.authored_time %]'>[% time_since(line.authored_time) %]</td>
30    <td class='author'>[% line.author.name | html %]</td>
31    <td>
32      [% short_cmt(line.comment) | html %]
33      [% INCLUDE '_refs.tt2' object = line %]
34    </td>
35    <td class='action-list'>
36      <a href="[% c.uri_for("commit", {h=line.sha1}) %]">commit</a>
37      <a href="[% c.uri_for("commitdiff", {h=line.sha1}) %]">commitdiff</a>
38      <a href="[% c.uri_for("tree", {h=line.sha1, hb=line.sha1}) %]">tree</a>
39    </td>
40   </tr>
41  [% END %]
42  </tbody>
43 </table>[%
44   INCLUDE 'inc/log_pager.tt2';
45 %]
46 </div>