Tidied up the /blob action and the commit-nav.tt2 links.
[catagits/Gitalist.git] / templates / commit.tt2
index 7cefc5c..bb029eb 100644 (file)
@@ -1,4 +1,4 @@
-[% INCLUDE 'commit-nav.tt2' %]
+[% INCLUDE 'commit-nav.tt2' object = commit %]
 <div class='commit-message'>
 [% commit.comment.substr(0, 50) %] ...
 [% FOREACH ref IN c.model('Git').refs_for(commit.sha1) %]
@@ -23,9 +23,7 @@
  [% END %]
 </dl>
 
-<pre class='commit-message'>
-[% commit.comment %]
-</pre>
+<pre class='commit-message'>[% commit.comment %]</pre>
 
 <table class='diff-tree'>
  <thead>
@@ -37,9 +35,9 @@
   <tr>
    <td class='filename'>[% line.src %]</td>
    <td class='action-list'>
-     [% IF !line.is_new %]<a href="/blobdiff?f=[% line.file %];h=[% line.sha1dst %];hp=[% sha1src %]">diff</a>[% END %]
-     <a href="/blob?f=[% line.file %];h=[% line.sha1 %];hb=[% commit.sha1 %]">blob</a>
-     [% IF !line.is_new %]<a href="/log?f=[% line.file %];hb[% commit.sha1 %]=">history</a>[% END %]
+     [% IF !line.is_new %]<a href="/blobdiff?p=[% project %];f=[% line.file %];h=[% line.sha1dst %];hp=[% sha1src %]">diff</a>[% END %]
+     <a href="/blob?p=[% project %];f=[% line.file %];h=[% line.sha1 %];hb=[% commit.sha1 %]">blob</a>
+     [% IF !line.is_new %]<a href="/log?p=[% project %];f=[% line.file %];hb[% commit.sha1 %]=">history</a>[% END %]
    </td>
   </tr>
   [% END %]