Fixed broken nav links for the /tree action.
[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;
b9423b8e 4 [% IF c.req.captures.size == 1; SET path = 'repository'; ELSE; SET path = 'ref'; END %]
a2a40af3 5 <a href="[% c.uri_for_action('/' _ path _ '/shortlog', c.req.captures) %]">shortlog</a> &bull;
6 <a href="[% c.uri_for_action('/' _ path _ '/longlog', c.req.captures) %]">log</a>
11808331 7 [% IF Commit %]
b6ec181b 8 &sect;
2980657b 9 <a href="[% c.uri_for_action('/ref/commit', [c.req.captures.0, Commit.sha1]) %]">commit</a> &bull;
10 <a href="[% c.uri_for_action('/ref/diff_fancy', [c.req.captures.0, Commit.sha1]) %]">commitdiff</a> &bull;
11 <a href="[% c.uri_for_action('/ref/tree', [c.req.captures.0, Commit.sha1]) %]">tree</a>
b254ff6b 12 [% END %]
a21b62ea 13 [% IF filename && c.action != 'ref/tree' %]
38a4951e 14 &sect;
2980657b 15 <a href="[% c.uri_for_action('/ref/blob', [c.req.captures.0, Commit.sha1], filename) %]">blob</a> &bull;
16 <a href="[% c.uri_for_action('/ref/raw', [c.req.captures.0, Commit.sha1], filename) %]">raw</a> &bull;
17 <a href="[% c.uri_for_action('/ref/blame', [c.req.captures.0, Commit.sha1], filename) %]">blame</a> &bull;
18 <a href="[% c.uri_for_action('/ref/shortlog', [c.req.captures.0, Commit.sha1], filename) %]">history</a> &bull;
11808331 19 <a href="[% c.uri_for(c.controller.action_for('commit'), [c.req.captures.0, Repository.head_hash]) %]">HEAD</a>
592b68ef 20 [% END %]
7e8a7295 21 <div class='chroma-hash'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = object.sha1 %]</div>
61b56ed6 22</div>