more design changes
[catagits/Gitalist.git] / root / wrapper.tt2
1 [%- IF no_wrapper || template.name.match('\.(css|js|txt)'); content; ELSE; -%]
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5 <head>
6   <!-- git core binaries version [% git_version %] -->
7   <meta charset="utf-8" />
8   <meta name="generator" content="gitweb/[% version %] git/[% git_version %]" />
9   <meta name="robots" content="index, nofollow" />
10   <title>[%# FIXME - MING %][%-
11     title = BLOCK;
12       c.config.sitename;
13       IF Repository; ' - ' _ Repository.name | html; END;
14       IF c.action;   ' / ' _ c.action; END;
15       IF filename;   ' - ' _ filename | html; END;
16       IF c.action && c.action == 'tree'; '/'; END;
17     END;
18     title;
19   -%] (Gitalist)</title>
20   [% INCLUDE '_header_feeds.tt2' %]
21    
22         <link rel="stylesheet" type="text/css" href="[% c.uri_for('/static/css/core.css') %]" />
23         <link rel="shortcut icon" href="[% c.uri_for('/static/git-favicon.png') %]" type="image/png" />
24 </head>
25
26 <body>
27
28 <div id="header">
29         <div class="sub_holder">
30                 <a href="[% c.uri_for('/') %]" id="logo"><img src="[% c.uri_for('/static/i/logo.png') %]" alt="Gitalist" /></a>
31         
32                 <div class="search">
33                         [% IF Repository; INCLUDE 'nav/search.tt2'; ELSE; %]
34                         
35                         <form method="get" action="[% c.uri_for_action('/search') %]" enctype="application/x-www-form-urlencoded">
36    <p class="projsearch">Search:
37     <input type="text" name="s" value="[% search_text %]" />
38    </p>
39   </form>
40                 [% END %]
41                 </div>
42                 
43                 
44                 <div id="nav_logs" [% 'style="visibility:hidden"' IF c.action.name == "index" %]>
45                         <ul>
46                                 [% IF c.req.captures.size == 1; SET path = 'repository'; ELSE; SET path = 'ref'; END %]
47                                 <li [% 'class="selected"' IF c.action.name.match('shortlog') %]><a href="[% c.uri_for_action('/' _ path _ '/shortlog', c.req.captures) %]" id="log_short">Short log</a></li>
48                                 <li [% 'class="selected"' IF c.action.name.match('longlog') %]><a href="[% c.uri_for_action('/' _ path _ '/longlog', c.req.captures) %]" id="log_full">Long log</a></li>
49                         </ul>
50                 </div>
51         
52                 <h1>
53                         <a href="[% c.uri_for('/') %]">Home</a>
54                 
55                         [%- IF Repository %]
56                 / <a href="[% c.uri_for_action('/repository/summary', [Repository.name]) %]/shortlog">[% Repository.name %]</a>
57                         [%- END %]
58                         /
59                         
60                         
61                         [% c.action.name.replace("_"," ").replace("log", " log").replace("index","Repositories") FILTER ucfirst %]
62                         
63         
64                         
65                         </h1>
66         
67         </div>
68 </div>
69
70
71
72 <div id="content_holder">
73         <div id="content" class="sub_holder">
74                 <div id="content_inner">
75
76         
77
78  [% content %]
79
80  
81  
82   [%# INCLUDE 'nav/actions.tt2' %]
83                 </div>
84         </div>
85 </div>
86
87 <div id="footer_holder">
88         <div id="footer" class="sub_holder">
89                 
90                 <p>[% IF Repository; Repository.description | html; END; %]</p>
91         
92                 <a title="git homepage" href="http://git-scm.org"><img src="[% c.uri_for('/logo.png') %]" id="git_logo" alt="git" /></a>
93                 
94                 <div id="feeds">
95                 [% INCLUDE 'inc/footer_feeds.tt2' %]
96                 </div>
97         </div>
98
99 </div>
100
101
102 <div id="debug_holder">
103         <div id="debug" class="sub_holder">
104
105         <p>Debug:</p>
106         
107         [% USE Dumper %]
108         <pre>
109         [% Repository.path %]
110         [% Dumper.dump(c.req.action) %]
111         </pre>
112         
113         </div>
114 </div>
115
116 </body>
117 </html>
118 [%- END -%]