Fixup links in shortlog to to the new locations.
Tomas Doran [Sun, 17 Jan 2010 22:31:42 +0000 (22:31 +0000)]
There are currently no templates or code to render them,
but the URIs generate correctly.

lib/Gitalist/URIStructure/Commit.pm
root/fragment/repository/shortlog.tt2

index 91d1405..d5d0e1b 100644 (file)
@@ -21,6 +21,6 @@ sub diff : Chained('find') Args(0) {}
 
 sub tree : Chained('find') Args(0) {}
 
-sub commit : Chained('find') Args(0) {}
+sub commit : Chained('find') PathPart('') Args(0) {}
 
 1;
index c31bb45..3a0e5d7 100644 (file)
    <td class='author'>[% line.author.name | html %]</td>
    <td>
      [% short_cmt(line.comment) | html %]
-     [% INCLUDE '_refs.tt2' object = line %]
+        [%# FIXME What did this crap used to do? Did it work ever? %]
+     [%# INCLUDE '_refs.tt2' object = line %]
    </td>
    <td class='action-list'>
-     <a href="[% c.uri_for("commit", {h=line.sha1}) %]">commit</a>
-     <a href="[% c.uri_for("commitdiff", {h=line.sha1}) %]">commitdiff</a>
-     <a href="[% c.uri_for("tree", {h=line.sha1, hb=line.sha1}) %]">tree</a>
+     <a href="[% c.uri_for_action("/commit/commit", [Repository.name, line.sha1]) %]">commit</a>
+     <a href="[% c.uri_for_action("/commit/diff", [Repository.name, line.sha1]) %]">commitdiff</a>
+     <a href="[% c.uri_for_action("/commit/tree", [Repository.name, line.sha1]) %]">tree</a>
    </td>
   </tr>
  [% END %]