more design changes
[catagits/Gitalist.git] / root / fragment / ref / history.tt2
old mode 100644 (file)
new mode 100755 (executable)
index 41dd259..868a4de
@@ -1,36 +1,27 @@
-[%
-  INCLUDE 'inc/log_pager.tt2';
-%]  <table class='history listing'>
-   <thead>
-    <tr>
-     <th>sha1</th>
-     <th>time</th>
-     <th>author</th>
-     <th>message</th>
-     <th>actions</th>
-    </tr>
-   </thead>
-
-   <tfoot>
-    <tr>
-     <td>sha1</td>
-     <td>time</td>
-     <td>author</td>
-     <td>message</td>
-     <td>actions</td>
-    </tr>
-   </tfoot>
+[% BLOCK history_table_headfoot %]
+[% SET cell = type == 'head' ? 'th' : 'td' %]
+<tr>
+ <[% cell %]>sha1</[% cell %]>
+ <[% cell %]>time</[% cell %]>
+ <[% cell %]>message</[% cell %]>
+ <[% cell %]>author</[% cell %]>
+ <[% cell %]>actions</[% cell %]>
+</tr>
+[% END %]
+ <table class='listing'>
+   <thead>[% PROCESS history_table_headfoot type = 'head' %]</thead
 
    <tbody>
    [% FOREACH line IN log_lines %]
-    <tr>
+ <tr [% "class='invert'" IF loop.count % 2 %]>
      <td class='sha1' title='[% line.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %]</td>
      <td class='time-since' title='[% line.authored_time %]'>[% time_since(line.authored_time) %]</td>
-     <td class='author'>[% line.author.name | html %]</td>
+    
      <td>
        [% short_cmt(line.comment) | html %]
        [% INCLUDE '_refs.tt2' object = line.0 %]
      </td>
+         <td class='author'>[% line.author.name | html %]</td>
      <td class='action-list'>
      [% IF filetype == 'tree' %]
        <a href="[% c.uri_for_action("/ref/tree", [Repository.name, line.sha1], filename) %]">blob</a>