The blame view now looks similar to the blob so a bit easier on the eyes.
[catagits/Gitalist.git] / root / commitdiff.tt2
index 24723bc..9db50ec 100644 (file)
@@ -1,30 +1,33 @@
 [% PROCESS 'nav/actions.tt2' object = commit %]
 
-<div class='commit-message'>
-[% commit.comment.substr(0, 85) %] ...
-</div>
+<div class='content'>
+  <div class='commit-message'>
+  [% # XXX Wah, stuff like this doesn't work because end() isn't called as we forward to View::SyntaxHighlight
+  short_cmt(commit.comment) | html %]
+  </div>
 
-<div class='author'>
-  [% commit.author.name | html %] [[% commit.authored_time %]]
-</div>
+  <div class='author'>
+    [% commit.author.name | html %] [[% commit.authored_time %]]
+  </div>
 
 
-[%
-# In the case of merge commits there will be no diff tree.
-IF diff_tree.size > 0;
-  INCLUDE '_diff_tree.tt2';
-END;
-IF diff.size > 0;
-  INCLUDE '_diff.tt2';
-ELSE
-%]
-<div class='no-difference'>
-[%
-  IF commit.parents > 1;
-    'Trivial merge';
-  ELSE;
-    'No differences found';
+  [%
+  # In the case of merge commits there will be no diff tree.
+  IF diff_tree.size > 0;
+    INCLUDE '_diff_tree.tt2';
   END;
-%]
+  IF diff.size > 0;
+    INCLUDE '_diff.tt2';
+  ELSE
+  %]
+  <div class='no-difference'>
+  [%
+    IF commit.parents > 1;
+      'Trivial merge';
+    ELSE;
+      'No differences found';
+    END;
+  %]
+  </div>
+  [% END %]
 </div>
-[% END %]