Further WIP of integrating rafl's work into Gitalist and moving gitweb into Catalyst.
[catagits/Gitalist.git] / templates / default.tt2
1 [%- # git_header_html
2 -%]
3 <?xml version="1.0" encoding="utf-8"?>
4 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
5 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
6 <!-- git web interface version [% version %], (C) 2005-2006, Kay Sievers <kay.sievers\@vrfy.org>, Christian Gierke -->
7 <!-- git core binaries version [% git_version %] -->
8 <head>
9   <meta http-equiv="content-type" content="[% content_type %]; charset=utf-8"/>
10   <meta name="generator" content="gitweb/[% version %] git/[% git_version %][% mod_perl_version %]"/>
11   <meta name="robots" content="index, nofollow"/>
12   <title>[% title %] (Gitalist)</title>
13   [% IF baseurl %]
14   <base href="[% baseurl %]" />
15   [% END %]
16   <link rel="stylesheet" type="text/css" href="[% stylesheet %]"/>
17   [% FOR link IN links %]
18             <link rel="[% link.rel %]"
19                   title="[% link.title %]"
20                   href="[% link.href %]"
21                   type="[% link.type %]"
22             />
23   [% END %]
24   [% IF favicon %]
25   <link rel="shortcut icon" href="[% favicon %]" type="image/png" />
26   [% END %]
27 </head>
28
29 <body>
30
31 [% site_header %]
32
33 <div class="page_header">
34   <a title="[% logo_label %]" href="[% logo_url %]"><img src="[% logo_img %]" alt="git" class="logo"/></a>
35   <a href="/git/gitweb.cgi">Venda Git Repos</a>
36   [%- IF project %]
37   / <a href="/git/gitweb.cgi?p=[% project %];a=summary">[% project %]</a>
38   [% IF action;  " / " _ action; END;
39   END %]
40 </div>
41
42 [% IF project AND have_search %]
43 <div class="search">
44   <form method="get" action="/" enctype="application/x-www-form-urlencoded">
45   <input name="p" type="hidden" value="[% project %]" />
46   <input name="a" type="hidden" value="search" />
47   <input name="h" type="hidden" value="[% search_hash %]" />
48   <select name="st" >
49       <option value="commit">commit</option>
50       <option value="grep">grep</option>
51       <option value="author">author</option>
52       <option value="committer">committer</option>
53       <option value="pickaxe">pickaxe</option>
54   </select><sup><a href="/?p=[% project %];a=search_help">?</a></sup> search:
55   <input type="text" name="s" value="[% search_text %]"/>
56   <span title="Extended regular expression"><label><input type="checkbox" name="sr" value="1" />re</label></span>
57   </form>
58 </div>
59 [% END %]
60
61 [%- # / git_header_html
62 -%]
63 [%
64   IF page_nav;
65     INCLUDE "page_nav.tt2";
66   END;
67
68   IF action;
69     INCLUDE "index.tt2";
70   ELSE;
71     # The output of gitweb.cgi is injected at this point.
72     content;
73   END;
74 %]
75
76 [%- # git_footer_html
77 -%]
78 <div class="page_footer">
79 [% IF project AND project_description %]
80   <div class="page_footer_text">[% project_description %]</div>
81 [% END %]
82 [% FOR feed IN feeds %]
83     <a class="[% feed.class %]" title="[% feed.title %]" href="[% feed.href %]">[% feed.name %]</a>
84 [% END %]
85 </div>
86
87 [% site_footer %]
88
89 </body>
90 </html>
91 [%- # / git_footer_html
92 -%]