X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=root%2Fwrapper.tt2;h=b8db7d9c90867756e99f4d97bc45267952040507;hb=3620aa21666f20c634edcf3a6ec6f16580bbda1f;hp=3e5246ff70b1e66b276ed93252bf21d467a119fa;hpb=aebe9a0e6beff3cb67fcfd138899ce91e91d61b9;p=catagits%2FGitalist.git
diff --git a/root/wrapper.tt2 b/root/wrapper.tt2
old mode 100644
new mode 100755
index 3e5246f..b8db7d9
--- a/root/wrapper.tt2
+++ b/root/wrapper.tt2
@@ -1,11 +1,11 @@
[%- IF no_wrapper || template.name.match('\.(css|js|txt)'); content; ELSE; -%]
-
+
-
-
-
+
+
+
[%# FIXME - MING %][%-
title = BLOCK;
c.config.sitename;
@@ -17,55 +17,186 @@
title;
-%] (Gitalist)
[% INCLUDE '_header_feeds.tt2' %]
-
-
-
-
-
-
+
+
+
+
+
-
-
-
-
- [% INCLUDE 'nav/actions.tt2' %]
-
-
-
+
+
+
+
+
+
+
+
+
[% content %]
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
Debug:
+
+ [% USE Dumper %]
+
+ [% Repository.path %]
+ [% Dumper.dump(c.req.args) %]
+
+
+
+
+
+
[%
+ # A bit of smoke and mirrors to get the /repository/shortlog URIs working
+ cur_act = '' _ c.action;
+ cur_uri = cur_act.match("log") || cur_act.match("^ref")
+ ? '/ref/' _ cur_act.replace("^(repository|ref)/", '')
+ : cur_act;
+ # XXX I just want lists!
+ IF c.req.args.size > 0;
+ c.uri_for_action(cur_uri, [Repository.name, 'HEAD'], c.req.args.0);
+ ELSE;
+ c.uri_for_action(cur_uri, [Repository.name, 'HEAD']);
+ END;
+%]
+
[% c.uri_for_action('/repository/heads', [Repository.name]) %]
+
[%- END -%]