Made the blame view a bit more informative.
[catagits/Gitalist.git] / root / blame.tt2
index 9c3958f..8085162 100644 (file)
@@ -5,12 +5,40 @@
 </div>
 [% END %]
 
-<h3>BLOB PATH</h3>
+[% INCLUDE 'nav/path.tt2' %]
 
-<div class='blame'>
+<div id='blame'>
 <table>
-[% FOR info IN filedata %]
-<tr><td>[% info.sha1 %]</td><td><pre>[% info.line | html %]</pre></td></tr>
-[% END %]
+ <thead>
+  <tr>
+   <th>sha1</th>
+   <th>author</th>
+   <th>date</th>
+   <th></th>
+   <th class='data'>data</th>
+  </tr>
+ </thead>
+
+ <tfoot>
+  <tr>
+   <td>sha1</td>
+   <td>author</td>
+   <td>date</td>
+   <td></td>
+   <td class='data'>data</td>
+  </tr>
+ </tfoot>
+
+ <tbody>
+ [% FOR info IN blame %]
+ <tr class=''>
+   <td class='commit-info'><a title="[% info.commit.author %] on [% info.commit.author_dt %]" href='[% c.uri_for('commit', {h=info.commit.sha1}) %]'>[% INCLUDE '_chroma_hash.tt2' sha1 = info.commit.sha1.substr(0,7) -%]</a></td>
+   <td class='author'>[% info.commit.author %]</td>
+   <td class='date'>[% info.commit.author_dt.ymd %]</td>
+   <td class='lineno'><tt>[% info.meta.lineno %]</tt></td>
+   <td class='data'><pre>[% info.line | html %]</pre></td>
+ </tr>
+ [% END %]
+ </tbody>
 </table>
 </div>