From: Dan Brook Date: Wed, 25 Nov 2009 13:34:41 +0000 (+0000) Subject: Made the blame view a bit more informative. X-Git-Tag: 0.000004~25^2~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=76eeff61c03af34ac0054b44d40c3b14c44afbfa;p=catagits%2FGitalist.git Made the blame view a bit more informative. --- diff --git a/root/blame.tt2 b/root/blame.tt2 index edd4a46..8085162 100644 --- a/root/blame.tt2 +++ b/root/blame.tt2 @@ -12,16 +12,20 @@ sha1 - line - data + author + date + + data sha1 - line - data + author + date + + data @@ -29,8 +33,10 @@ [% FOR info IN blame %] [% INCLUDE '_chroma_hash.tt2' sha1 = info.commit.sha1.substr(0,7) -%] + [% info.commit.author %] + [% info.commit.author_dt.ymd %] [% info.meta.lineno %] -
[% info.line | html %]
+
[% info.line | html %]
[% END %] diff --git a/root/static/css/site.css b/root/static/css/site.css index 8fb3d80..c53694a 100644 --- a/root/static/css/site.css +++ b/root/static/css/site.css @@ -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 {