X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=root%2Fnav%2Factions.tt2;h=7845ca9517b9ae5d473000210ebe632ae6df33e4;hb=ef0ad44d281eb459d1d3968096f69cdc63021db1;hp=4e647b2b13da2c11e8e29217cc1b3495bf0c507e;hpb=f796a86151f0c1237610564cbb3e5fd7ae3a6c47;p=catagits%2FGitalist.git diff --git a/root/nav/actions.tt2 b/root/nav/actions.tt2 index 4e647b2..7845ca9 100644 --- a/root/nav/actions.tt2 +++ b/root/nav/actions.tt2 @@ -1,11 +1,26 @@ +[%- SET object = commit || head -%]
- summary • - shortlog • - log • - commit • - commitdiff - [% IF object.type == 'commit' %] • - tree +
+
+ + summary • + [% IF c.req.captures.size == 1; SET path = 'repository'; ELSE; SET path = 'ref'; END %] + shortlog • + log + [% IF Commit %] + § + commit • + commitdiff • + tree [% END %] -
[% INCLUDE '_chroma_hash.tt2' sha1 = object.sha1 %]
+ [% IF filename && c.action != 'ref/tree' %] + § + blob • + raw • + blame • + history • + HEAD + [% END %] +
+
[% INCLUDE 'inc/chroma_hash.tt2' sha1 = object.sha1 %]