Made the blame view a bit more informative.
Dan Brook [Wed, 25 Nov 2009 13:34:41 +0000 (13:34 +0000)]
root/blame.tt2
root/static/css/site.css

index edd4a46..8085162 100644 (file)
  <thead>
   <tr>
    <th>sha1</th>
-   <th>line</th>
-   <th>data</th>
+   <th>author</th>
+   <th>date</th>
+   <th></th>
+   <th class='data'>data</th>
   </tr>
  </thead>
 
  <tfoot>
   <tr>
    <td>sha1</td>
-   <td>line</td>
-   <td>data</td>
+   <td>author</td>
+   <td>date</td>
+   <td></td>
+   <td class='data'>data</td>
   </tr>
  </tfoot>
 
  [% 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><pre>[% info.line | html %]</pre></td>
+   <td class='data'><pre>[% info.line | html %]</pre></td>
  </tr>
  [% END %]
  </tbody>
index 8fb3d80..c53694a 100644 (file)
@@ -1,3 +1,7 @@
+/*
+14d2f2ca3732551d1585e7590e60b82492f3
+^^ A rather nice chroma hash
+*/
 body {
   margin: 1em;
 }
@@ -160,6 +164,23 @@ table.heads {
 #blame tbody tr:hover {
   background-color: #fefeaa;
 }
+/*#blame td { border: solid 1px black; }*/
+#blame td.lineno {
+  width: 2%;
+  background-color: #ddd;
+}
+#blame td.date {
+  width: 7%;
+}
+#blame td.author  {
+  width: 10%;
+}
+#blame td.commit-info {
+  width: 5%;
+}
+#blame .data {
+  padding-left: 5px;
+}
 
 /* /blob */
 pre.blob {