Made an attempt to fix the hardcoded CSS urls.
[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
2b686219 22 <link rel="stylesheet" type="text/css" href="[% c.uri_for('/core.css') %]" />
82f94bce 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>
9143f8d4 32
08d8bb08 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" %]>
9143f8d4 47
48 [% IF c.req.captures.size == 1; SET path = 'repository'; ELSE; SET path = 'ref'; END %]
49
82f94bce 50 <ul>
80d7575a 51 <li[% ' class="selected"' IF c.action.name.match('tree') %]><a href="[% c.uri_for_action('/ref/tree', c.req.captures) %]" id="tree">Tree</a></li>
9143f8d4 52
80d7575a 53 <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>
9143f8d4 54
80d7575a 55 <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>
9143f8d4 56
57
58 <li id="branch_selector">
59 [%# FIXME: convert to c.uri_for_action #%]
60
61 Branches
62 <select onchange="document.location.href='/[% Repository.name %]/'+this.options[this.selectedIndex].text + '/shortlog';">
63 <option value="">HEAD</option>
64
65 [% FOREACH branch_head IN Repository.heads %]
66 <option [% "selected" IF c.req.path.search(branch_head.name) %]>[% branch_head.name %]</option>
67 [% END %]
68
69 </select>
70 </li>
71
82f94bce 72 </ul>
73 </div>
74
75 <h1>
76 <a href="[% c.uri_for('/') %]">Home</a>
77
78 [%- IF Repository %]
79 / <a href="[% c.uri_for_action('/repository/summary', [Repository.name]) %]/shortlog">[% Repository.name %]</a>
80 [%- END %]
81 /
9143f8d4 82 [%- IF Repository %]
83 [%# FIXME: output branch name in a nicer way!!! #%]
84 [% FOREACH branch_head IN Repository.heads %]
85 [% IF c.req.path.search(branch_head.name) %]
86 <a href="[% c.uri_for_action('/repository/summary', [Repository.name]) %]/[% branch_head.name %]/shortlog">[% branch_head.name %]</a> /
87 [% END %]
88 [% END %]
89 [%- END %]
82f94bce 90
9143f8d4 91 [%-
92 c.action.name
93 .replace("_"," ")
94 .replace("log", " log")
95 .replace("fancy","")
96 .replace("index","Repositories")
97 FILTER ucfirst
98 -%]
eab82ed1 99
100
101
82f94bce 102 </h1>
103
104 </div>
105</div>
106
107
82f94bce 108<div id="content_holder">
109 <div id="content" class="sub_holder">
110 <div id="content_inner">
1fd8159c 111
82f94bce 112
d3feefcf 113
10938267 114 [% content %]
10938267 115
82f94bce 116
82f94bce 117 </div>
118 </div>
119</div>
69421cb7 120
eab82ed1 121<div id="footer_holder">
122 <div id="footer" class="sub_holder">
123
124 <p>[% IF Repository; Repository.description | html; END; %]</p>
125
126 <a title="git homepage" href="http://git-scm.org"><img src="[% c.uri_for('/logo.png') %]" id="git_logo" alt="git" /></a>
127
128 <div id="feeds">
129 [% INCLUDE 'inc/footer_feeds.tt2' %]
130 </div>
82f94bce 131 </div>
eab82ed1 132
2cf1e781 133</div>
134
82f94bce 135
9143f8d4 136
eab82ed1 137<div id="debug_holder">
138 <div id="debug" class="sub_holder">
82f94bce 139
eab82ed1 140 <p>Debug:</p>
141
142 [% USE Dumper %]
143 <pre>
144 [% Repository.path %]
9143f8d4 145 [%# Dumper.dump(c.req.path) %]
eab82ed1 146 </pre>
147
148 </div>
149</div>
ed30bf20 150
d3feefcf 151</body>
152</html>
c8a42dd5 153[%- END -%]