X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=root%2Fnav%2Factions.tt2;h=7845ca9517b9ae5d473000210ebe632ae6df33e4;hb=e1a23af1e0fa1ee2aa13ba3055c258e559ee4f93;hp=52ca63e150c14f7133f8e2d2c88bc13f3b02023e;hpb=2cf1e7818faaa31479ecdbc66dbec4f5cedf551e;p=catagits%2FGitalist.git diff --git a/root/nav/actions.tt2 b/root/nav/actions.tt2 index 52ca63e..7845ca9 100644 --- a/root/nav/actions.tt2 +++ b/root/nav/actions.tt2 @@ -1,20 +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 %] - [% IF filename %] + [% IF filename && c.action != 'ref/tree' %] § - blob • - raw • - blame • - history • - HEAD + blob • + raw • + blame • + history • + HEAD [% END %] -
[% INCLUDE '_chroma_hash.tt2' sha1 = object.sha1 %]
+
+
[% INCLUDE 'inc/chroma_hash.tt2' sha1 = object.sha1 %]