Make the top row of actions generate uris which work again (partially)
[catagits/Gitalist.git] / root / nav / actions.tt2
CommitLineData
1fd8159c 1<div class='actions'>
2cf1e781 2 <!-- This should probably be a real LIst -->
11808331 3 <a href="[% c.uri_for_action('/repository/summary', [c.req.captures.0]) %]">summary</a> &bull;
4 <a href="[% c.uri_for_action('/repository/shortlog', [c.req.captures.0]) %]">shortlog</a> &bull;
5 <a href="[% c.uri_for_action('/repository/log', [c.req.captures.0]) %]">log</a> &bull;
6 [% IF Commit %]
7 <a href="[% c.uri_for_action('/commit/commit', [c.req.captures.0, Commit.sha1]) %]">commit</a> &bull;
8 <a href="[% c.uri_for_action('/commit/diff_fancy', [c.req.captures.0, Commit.sha1]) %]">commitdiff</a> &bull;
9 <a href="[% c.uri_for_action('/commit/tree', [c.req.captures.0, Commit.sha1]) %]">tree</a>
b254ff6b 10 [% END %]
11808331 11 [% IF filename && Commit %]&bull;[% END %]
592b68ef 12 [% IF filename %]
38a4951e 13 &sect;
741e110e 14 <a href="[% c.uri_for('blob', {h=object.sha1,f=filename}) %]">blob</a> &bull;
b5f3d3e7 15 <a href="[% c.uri_for('blob_plain', {h=object.sha1,f=filename}) %]">raw</a> &bull;
741e110e 16 <a href="[% c.uri_for('blame', {h=object.sha1,f=filename}) %]">blame</a> &bull;
17 <a href="[% c.uri_for('shortlog', {h=object.sha1,f=filename}) %]">history</a> &bull;
11808331 18 <a href="[% c.uri_for(c.controller.action_for('commit'), [c.req.captures.0, Repository.head_hash]) %]">HEAD</a>
592b68ef 19 [% END %]
7e8a7295 20 <div class='chroma-hash'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = object.sha1 %]</div>
61b56ed6 21</div>