X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=root%2Fblame.tt2;h=19d3e612c5318aab5d2912e0c50d1728b55dab8d;hb=28d48c6e7b0202a8e6a862a4ffeba61bf7055eb9;hp=8085162f143077b00c43f19afdd5ff0ff2a11755;hpb=76eeff61c03af34ac0054b44d40c3b14c44afbfa;p=catagits%2FGitalist.git diff --git a/root/blame.tt2 b/root/blame.tt2 index 8085162..19d3e61 100644 --- a/root/blame.tt2 +++ b/root/blame.tt2 @@ -1,8 +1,10 @@ [% PROCESS 'nav/actions.tt2' object = head %] +[% INCLUDE inc/syntax_highlight_css.tt2 %] + +
+ [% IF object.type == 'commit' %] -
-[% head.comment.substr(0, 85) %] ... -
+
[% short_cmt(head.comment) %]
[% END %] [% INCLUDE 'nav/path.tt2' %] @@ -11,9 +13,9 @@ - + @@ -21,24 +23,37 @@ - + + [% blame_lines = blob.split("\n") %] [% 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 %]
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.line | html %]
[% info.commit.author %][% info.commit.author_dt.ymd %][% linecolour %][% info.meta.lineno %]
[% blame_lines.${loop.index} %]
+ +