<div class='actions'>
<!-- This should probably be a real LIst -->
- <a href="[% c.uri_for('summary') %]">summary</a> •
- <a href="[% c.uri_for('shortlog', {h=object.sha1}) %]">shortlog</a> •
- <a href="[% c.uri_for('log', {h=object.sha1}) %]">log</a> •
- <a href="[% c.uri_for('commit', {h=object.sha1}) %]">commit</a> •
- <a href="[% c.uri_for('commitdiff', {h=object.sha1}) %]">commitdiff</a>
- [% IF object.type == 'commit' %] •
- <a href="[% c.uri_for('tree', {h=object.tree_sha1, hb=object.sha1}) %]">tree</a>
+ <a href="[% c.uri_for_action('/repository/summary', [c.req.captures.0]) %]">summary</a> •
+ <a href="[% c.uri_for_action('/repository/shortlog', [c.req.captures.0]) %]">shortlog</a> •
+ <a href="[% c.uri_for_action('/repository/log', [c.req.captures.0]) %]">log</a> •
+ [% IF Commit %]
+ <a href="[% c.uri_for_action('/commit/commit', [c.req.captures.0, Commit.sha1]) %]">commit</a> •
+ <a href="[% c.uri_for_action('/commit/diff_fancy', [c.req.captures.0, Commit.sha1]) %]">commitdiff</a> •
+ <a href="[% c.uri_for_action('/commit/tree', [c.req.captures.0, Commit.sha1]) %]">tree</a>
[% END %]
+ [% IF filename && Commit %]•[% END %]
[% IF filename %]
§
<a href="[% c.uri_for('blob', {h=object.sha1,f=filename}) %]">blob</a> •
<a href="[% c.uri_for('blob_plain', {h=object.sha1,f=filename}) %]">raw</a> •
<a href="[% c.uri_for('blame', {h=object.sha1,f=filename}) %]">blame</a> •
<a href="[% c.uri_for('shortlog', {h=object.sha1,f=filename}) %]">history</a> •
- <a href="[% c.uri_for(action, {f=filename}) %]">HEAD</a>
+ <a href="[% c.uri_for(c.controller.action_for('commit'), [c.req.captures.0, Repository.head_hash]) %]">HEAD</a>
[% END %]
<div class='chroma-hash'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = object.sha1 %]</div>
</div>