X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=root%2Fwrapper.tt2;h=7006bbbfd247f1d15508fa7f14d683f18ab2638a;hb=d808f958c0b825070c1c76d256c6beee9ffafe6a;hp=593246a50a1205cb1a1df639dab393beb5132da7;hpb=189f3b00a6f99a59268fd89d67d7f5fde9b0e519;p=catagits%2FGitalist.git diff --git a/root/wrapper.tt2 b/root/wrapper.tt2 index 593246a..7006bbb 100755 --- a/root/wrapper.tt2 +++ b/root/wrapper.tt2 @@ -19,8 +19,95 @@ -%] (Gitalist) [% INCLUDE '_header_feeds.tt2' %] - + + @@ -29,26 +116,47 @@
@@ -59,19 +167,57 @@ / [% Repository.name %] [%- END %] / + [%- IF Repository %] + [%# FIXME: output branch name in a nicer way!!! #%] + [% FOREACH branch_head IN Repository.heads %] + [% IF c.req.path.search(branch_head.name) %] + [% branch_head.name %] / + [% END %] + [% END %] + [%- END %] - [% c.action.name.replace("_"," ").replace("log", " log").replace("fancy","").replace("index","Repositories") FILTER ucfirst %] - - - + [%- + SET actions_list = { + "blob" => 1, + "raw" => 1, + "blame" => 1, + "history" => 1, + }; + + SET action_name = c.action.name + .replace("_"," ") + .replace("log", " log") + .replace("fancy","") + .replace("index","Repositories"); + action_name_ucfirst = action_name FILTER ucfirst; + IF actions_list.$action_name; + '' _ action_name_ucfirst _ ''; + ELSE; + action_name_ucfirst; + END; + + -%] + + [%- + IF actions_list.$action_name; + ''; + END; + -%] +
- - +
@@ -88,7 +234,7 @@