Remove whitespace [Gun.io WhitespaceBot]
[catagits/Gitalist.git] / root / fragment / ref / history.tt2
1 [% BLOCK history_table_headfoot %]
2 [% SET cell = type == 'head' ? 'th' : 'td' %]
3 <tr>
4 <[% cell %] colspan="2"><a href="" class='compare-link'>Compare</a></[% cell %]>
5  <[% cell %]>sha1</[% cell %]>
6  <[% cell %]>time</[% cell %]>
7  <[% cell %]>message</[% cell %]>
8  <[% cell %]>author</[% cell %]>
9  <[% cell %]>actions</[% cell %]>
10 </tr>
11 [% END %]
12 <form id="compare-form">
13  <table class='listing'>
14    <thead>[% PROCESS history_table_headfoot type = 'head' %]</thead
15
16    <tbody>
17    [% FOREACH line IN log_lines %]
18  <tr [% "class='invert'" IF loop.count % 2 %]>
19         <td><input type="radio" name="sha1_a" value="[% line.sha1 %]"[% " checked" IF loop.count == 2 %] /></td>
20         <td><input type="radio" name="sha1_b" value="[% line.sha1 %]"[% " checked" IF loop.count == 1 %]/></td>
21      <td class='sha1' title='[% line.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %]</td>
22      <td class='time-since' title='[% line.authored_time %]'>[% time_since(line.authored_time) %]</td>
23
24      <td>
25        [% short_cmt(line.comment) | html %]
26        [% INCLUDE '_refs.tt2' object = line.0 %]
27      </td>
28           <td class='author'>[% line.author.name | html %]</td>
29      <td class='action-list'>
30      [% IF filetype == 'tree' %]
31        <a href="[% c.uri_for_action("/ref/tree", [Repository.name, line.sha1], filename) %]" title="Blob" class="button blob">blob</a>
32       [% ELSIF filetype == 'blob' %]
33        <a href="[% c.uri_for_action("/ref/blob", [Repository.name, line.sha1], filename) %]" title="Blob" class="button blob">blob</a>
34       [% END %]
35        <a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, line.sha1]) %]" title="Commit diff" class="button diff">commitdiff</a>
36       [% IF filetype == 'blob' %]
37        <a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, line.sha1], 'HEAD', filename) %]" title="Diff to current" class="button diffcurrent">diff to current</a>
38        [% END %]
39      </td>
40     </tr>
41    [% END %]
42   <tr>
43         <td colspan="2"><a href="" class='compare-link'>Compare</a></td>
44         <td colspan="5"></td>
45 </tr>
46    </tbody>
47   </table>
48 </form>
49
50 <span id='compare-path' class='js-data'>[% filename %]</span>
51 <span id="diff-uri" class='js-data'>[% c.uri_for_action('/ref/diff_fancy', [Repository.name, 'HEAD']) %]</span>
52
53 [% INCLUDE 'inc/history_pager.tt2' %]