Sort the tests out..
[catagits/Gitalist.git] / root / wrapper.tt2
index 0feb8de..fafed4f 100644 (file)
@@ -6,13 +6,13 @@
   <meta charset="utf-8">
   <meta name="generator" content="gitweb/[% version %] git/[% git_version %][% mod_perl_version %]">
   <meta name="robots" content="index, nofollow">
-  <title>[%-
+  <title>[%# FIXME - MING %][%-
     title = BLOCK;
       c.config.sitename;
       IF Repository; ' - ' _ Repository.name | html; END;
-      IF action;  ' / ' _ action; END;
+      IF c.action;  ' / ' _ c.action; END;
       IF filename; ' - ' _ filename | html; END;
-      IF action && action == 'tree'; '/'; END;
+      IF c.action && c.action == 'tree'; '/'; END;
     END;
     title;
   -%] (Gitalist)</title>
   <a title="git homepage" href="http://git-scm.org">
    <img src="[% c.uri_for('/logo.png') %]" alt="git" class="logo">
   </a>
-  <a href="[% c.uri_for('/', {p=''}) %]">A Gitalist</a>
+  <a href="[% c.uri_for('/') %]">A Gitalist</a>
   [%- IF Repository %]
-  / <a href="[% c.uri_for('summary') %]">[% Repository.name %]</a>
-  [% IF action;  " / " _ action; END;
-  END %]
+  / <a href="[% c.uri_for_action('/repository/summary', [Repository.name]) %]">[% Repository.name %]</a>
+  [% END %]
 [%
   IF Repository;
     INCLUDE 'nav/search.tt2';