Fixed summary and changed a few links.
[catagits/Gitalist.git] / root / wrapper.tt2
index 8426d65..c03a4b2 100755 (executable)
@@ -1,7 +1,6 @@
 [%- IF no_wrapper || template.name.match('\.(css|js|txt)'); content; ELSE; -%]
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<!DOCTYPE html>
+<html>
 <head>
   <!-- git core binaries version [% git_version %] -->
   <meta charset="utf-8" />
@@ -21,7 +20,7 @@
    
        <link rel="stylesheet" type="text/css" href="[% c.uri_for('/core.css') %]" />
        <link rel="shortcut icon" href="[% c.uri_for('/static/favicon.ico') %]" />
-       <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
+       <script src="[% c.uri_for('/static/js/jquery.min.js') %]"></script>
        <script src="[% c.uri_for('/static/js/site.js') %]"></script>
 </head>
 
@@ -78,7 +77,7 @@
                        <a href="[% c.uri_for('/') %]">Home</a>
                
                        [%- IF Repository %]
-               / <a href="[% c.uri_for_action('/repository/summary', [Repository.name]) %]/shortlog">[% Repository.name %]</a>
+               / <a href="[% c.uri_for_action('/repository/summary', [Repository.name]) %]">[% Repository.name %]</a>
                        [%- END %]
                        /
                        [%- IF Repository %]
        </div>
 </div>
 
-<span id="current-uri">[%
+<span id="current-uri" class="js-data">[%
       # 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 an empty list!
+      # XXX I just want lists!
       IF c.req.args.size > 0;
-          c.uri_for_action(cur_uri, [Repository.name, 'HEAD'], c.req.args);
+          c.uri_for_action(cur_uri, [Repository.name, 'HEAD'], c.req.args.0);
       ELSE;
           c.uri_for_action(cur_uri, [Repository.name, 'HEAD']);
       END;