major design changes - almost there
[catagits/Gitalist.git] / root / wrapper.tt2
CommitLineData
c8a42dd5 1[%- IF no_wrapper || template.name.match('\.(css|js|txt)'); content; ELSE; -%]
82f94bce 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">
d3feefcf 5<head>
f71a83ab 6 <!-- git core binaries version [% git_version %] -->
82f94bce 7 <meta charset="utf-8" />
8 <meta name="generator" content="gitweb/[% version %] git/[% git_version %]" />
9 <meta name="robots" content="index, nofollow" />
a349e797 10 <title>[%# FIXME - MING %][%-
da8f4f82 11 title = BLOCK;
12 c.config.sitename;
87581f05 13 IF Repository; ' - ' _ Repository.name | html; END;
906a2dd2 14 IF c.action; ' / ' _ c.action; END;
15 IF filename; ' - ' _ filename | html; END;
a349e797 16 IF c.action && c.action == 'tree'; '/'; END;
da8f4f82 17 END;
18 title;
19 -%] (Gitalist)</title>
20 [% INCLUDE '_header_feeds.tt2' %]
82f94bce 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" />
24701964 24</head>
25
26<body>
27
08d8bb08 28<div id="header_holder">
82f94bce 29 <div class="sub_holder">
08d8bb08 30 <div id="header">
31 <a href="[% c.uri_for('/') %]" id="logo"><img src="[% c.uri_for('/static/i/logo.png') %]" alt="Gitalist" /></a>
32
33 <div class="search">
34 [% IF Repository; INCLUDE 'nav/search.tt2'; ELSE; %]
35
36 <form method="get" action="[% c.uri_for_action('/search') %]" enctype="application/x-www-form-urlencoded">
37 <p class="projsearch">Search:
38 <input type="text" name="s" value="[% search_text %]" />
39 </p>
40 </form>
41 [% END %]
42 </div>
82f94bce 43 </div>
44
45
46 <div id="nav_logs" [% 'style="visibility:hidden"' IF c.action.name == "index" %]>
47 <ul>
48 [% IF c.req.captures.size == 1; SET path = 'repository'; ELSE; SET path = 'ref'; END %]
82f94bce 49 <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>
08d8bb08 50 <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>
82f94bce 51 </ul>
52 </div>
53
54 <h1>
55 <a href="[% c.uri_for('/') %]">Home</a>
56
57 [%- IF Repository %]
58 / <a href="[% c.uri_for_action('/repository/summary', [Repository.name]) %]/shortlog">[% Repository.name %]</a>
59 [%- END %]
60 /
61
eab82ed1 62
08d8bb08 63 [% c.action.name.replace("_"," ").replace("log", " log").replace("fancy","").replace("index","Repositories") FILTER ucfirst %]
eab82ed1 64
65
66
82f94bce 67 </h1>
68
69 </div>
70</div>
71
72
73
74<div id="content_holder">
75 <div id="content" class="sub_holder">
76 <div id="content_inner">
1fd8159c 77
82f94bce 78
d3feefcf 79
10938267 80 [% content %]
10938267 81
82f94bce 82
83
eab82ed1 84 [%# INCLUDE 'nav/actions.tt2' %]
82f94bce 85 </div>
86 </div>
87</div>
69421cb7 88
eab82ed1 89<div id="footer_holder">
90 <div id="footer" class="sub_holder">
91
92 <p>[% IF Repository; Repository.description | html; END; %]</p>
93
94 <a title="git homepage" href="http://git-scm.org"><img src="[% c.uri_for('/logo.png') %]" id="git_logo" alt="git" /></a>
95
96 <div id="feeds">
97 [% INCLUDE 'inc/footer_feeds.tt2' %]
98 </div>
82f94bce 99 </div>
eab82ed1 100
2cf1e781 101</div>
102
82f94bce 103
eab82ed1 104<div id="debug_holder">
105 <div id="debug" class="sub_holder">
82f94bce 106
eab82ed1 107 <p>Debug:</p>
108
109 [% USE Dumper %]
110 <pre>
111 [% Repository.path %]
08d8bb08 112 [% Dumper.dump(c.action.name) %]
eab82ed1 113 </pre>
114
115 </div>
116</div>
ed30bf20 117
d3feefcf 118</body>
119</html>
c8a42dd5 120[%- END -%]