Add log action for commits
Tomas Doran [Sun, 24 Jan 2010 14:52:05 +0000 (14:52 +0000)]
lib/Gitalist/URIStructure/Commit.pm
root/fragment/repository/heads.tt2

index 302df90..bf2d5ea 100644 (file)
@@ -47,4 +47,6 @@ sub history : Chained('find') Does('FilenameArgs') Args() {}
 
 sub shortlog : Chained('find') Does('FilenameArgs') Args() {}
 
+sub longlog : Chained('find') Does('FilenameArgs') PathPart('log') Args() {}
+
 1;
index 446e8d8..a2ca50e 100644 (file)
@@ -21,8 +21,8 @@
    <td class='time-since' title='[% head.last_change %]'>[% time_since(head.last_change) %]</td>
    <td class='head[% head.sha1 == HEAD ? ' current' : '' %]'>[% head.name %]</td>
    <td class='action-list'>[%# FIXME %]
-     <a href="[% c.uri_for_action('/repository/shortlog', [Repository.name]) %]">shortlog</a>
-     <a href="[% c.uri_for_action('/repository/longlog', [Repository.name]) %]">log</a>
+     <a href="[% c.uri_for_action('/commit/shortlog', [Repository.name, head.name]) %]">shortlog</a>
+     <a href="[% c.uri_for_action('/commit/longlog', [Repository.name, head.name]) %]">log</a>
      <a href="[% c.uri_for_action('/commit/tree', [Repository.name, head.name]) %]">tree</a>
    </td>
   </tr>