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