X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=root%2Fwrapper.tt2;h=b8db7d9c90867756e99f4d97bc45267952040507;hb=fe89796bdda22aa81e507774db1cdb1af705a28a;hp=56fb860e2eb14d5d1d4809186894c113949ad425;hpb=80d7575aa1bd927116dcf6c461d30442e26ee030;p=catagits%2FGitalist.git diff --git a/root/wrapper.tt2 b/root/wrapper.tt2 index 56fb860..b8db7d9 100755 --- a/root/wrapper.tt2 +++ b/root/wrapper.tt2 @@ -1,7 +1,6 @@ [%- IF no_wrapper || template.name.match('\.(css|js|txt)'); content; ELSE; -%] - - + + @@ -18,9 +17,11 @@ title; -%] (Gitalist) [% INCLUDE '_header_feeds.tt2' %] - - - + + + + + @@ -31,76 +32,109 @@ - - + + - +

Home - + [%- IF Repository %] - / [% Repository.name %] + / [% 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) %] + [%- FOREACH branch_head IN Repository.heads %] + [%- IF c.req.path.search(branch_head.name) %] [% branch_head.name %] / - [% END %] - [% END %] + [% END -%] + [% END -%] [%- END %] - - [%- - c.action.name - .replace("_"," ") - .replace("log", " log") - .replace("fancy","") - .replace("index","Repositories") - FILTER ucfirst + + + [%- + + #FIXME on a history view of a folder, don't show extra actions in dropdown + SET on_file_page = 1; + + 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 && on_file_page; + '' _ action_name_ucfirst _ ''; + ELSE; + action_name_ucfirst; + END; + -%] - - - +

- + + [%- + IF actions_list.$action_name; + ''; + END; + -%] + @@ -109,22 +143,22 @@
- + [% content %] - +