From: Dan Brook Date: Wed, 25 Nov 2009 13:55:41 +0000 (+0000) Subject: Further tweaks to the blame view. X-Git-Tag: 0.000004~25^2~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=da29fb4447b7edaf017d607fb1992da71fe61709;p=catagits%2FGitalist.git Further tweaks to the blame view. --- diff --git a/root/blame.tt2 b/root/blame.tt2 index 8085162..685867d 100644 --- a/root/blame.tt2 +++ b/root/blame.tt2 @@ -11,9 +11,9 @@ - + @@ -21,9 +21,9 @@ - + @@ -32,11 +32,21 @@ [% FOR info IN blame %] - - - - + [%- + linecolour = info.commit.sha1.substr(0,6); + IF info.commit.sha1 != lastsha1; + styleinfo = " style='border-top: solid 3px #" _ linecolour _ ";'"; -%] + + + + [%- ELSE -%] + + + + [%- END -%] + + [% lastsha1 = info.commit.sha1 %] [% END %] diff --git a/root/static/css/site.css b/root/static/css/site.css index c53694a..a4ed860 100644 --- a/root/static/css/site.css +++ b/root/static/css/site.css @@ -26,7 +26,7 @@ tfoot td { background-color: #fefeaa; } -span.chroma-hash { +.chroma-hash { font-family: monospace; font-size: 1em; font-style: normal; @@ -167,7 +167,7 @@ table.heads { /*#blame td { border: solid 1px black; }*/ #blame td.lineno { width: 2%; - background-color: #ddd; + background-color: #eee; } #blame td.date { width: 7%; @@ -176,7 +176,7 @@ table.heads { width: 10%; } #blame td.commit-info { - width: 5%; + width: 4%; } #blame .data { padding-left: 5px;
sha1 author datesha1 data
sha1 author datesha1 data
[% INCLUDE '_chroma_hash.tt2' sha1 = info.commit.sha1.substr(0,7) -%][% info.commit.author %][% info.commit.author_dt.ymd %][% info.meta.lineno %][% info.commit.author %][% info.commit.author_dt.ymd %][% linecolour %][% info.meta.lineno %]
[% info.line | html %]