Tidied up the /blob action and the commit-nav.tt2 links.
[catagits/Gitalist.git] / templates / commit-nav.tt2
index 34106e7..4954dfb 100644 (file)
@@ -1,21 +1,8 @@
 <div id='commit-nav'>
-    [%# XXX For the record these params are wrong (i.e sha1 will probably be wrong) and the actions don't exist i.e this is a shim -%]
-    [% IF project %]
     <a href="/summary?p=[% project %]">summary</a> |
-    [% END %]
-    [% IF c.req.param('hb') %]
-    <a href="/shortlog?h=[% c.req.param('hb') %]">shortlog</a> |
-    [% END %]
-    [% IF c.req.param('hb') %]
-    <a href="/log?h=[% c.req.param('hb') %]">log</a> |
-    [% END %]
-    [% IF c.req.param('h') %]
-    <a href="/commit?h=[% c.req.param('h') %]">commit</a> |
-    [% END %]
-    [% IF c.req.param('h') %]
-    <a href="/commitdiff?h=[% c.req.param('h') %]">commitdiff</a> |
-    [% END %]
-    [% IF t %]
-    <a href="/tree?h=[% t %]">tree</a>
-    [% END %]
+    <a href="/shortlog?p=[% project %];h=[% object.sha1 %]">shortlog</a> |
+    <a href="/log?p=[% project %];h=[% object.sha1 %]">log</a> |
+    <a href="/commit?p=[% project %];h=[% object.sha1 %]">commit</a> |
+    <a href="/commitdiff?p=[% project %];h=[% object.sha1 %]">commitdiff</a> |
+    <a href="/tree?p=[% project %];h=[% object.tree_sha1 %]">tree</a>
 </div>