Add Apache specific section to docs.
[catagits/Gitalist.git] / root / wrapper.tt2
index 1e35105..e4a9057 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="[% c.uri_for('/static/js/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>
 
                                        Branches 
                                        <select id='branch-list'>
                                                <option value="">HEAD</option>
-                                       [% FOREACH branch IN Repository.heads %]
+                                       [%- FOREACH branch IN Repository.heads -%]
                                                <option value="[% branch.name %]">[% branch.name %]</option>
-                                       [% END %]
+                                               [% IF loop.count == c.config.paging.summary %]
+                                               <option value="...">&gt;Branch list</option>
+                                               [% LAST %]
+                                               [% END %]
+                                       [% END -%]
                                        
                                        </select>
                                </li>
                        <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 %]
                                [%# 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) %]
                                <a href="[% c.uri_for_action('/repository/summary', [Repository.name]) %]/[% branch_head.name %]/shortlog">[% branch_head.name %]</a> /
-                                       [% END %]
-                               [% END %]
+                                       [% END -%]
+                               [% END -%]
                        [%- END %]
                        
                        
           c.uri_for_action(cur_uri, [Repository.name, 'HEAD']);
       END;
 %]</span>
+<span id="heads-uri" class="js-data">[% c.uri_for_action('/repository/heads', [Repository.name]) %]</span>
 
 </body>
 </html>