<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>
+/*
+14d2f2ca3732551d1585e7590e60b82492f3
+^^ A rather nice chroma hash
+*/
body {
margin: 1em;
}
#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 {