WIP of moving the project list to an action.
[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   [% baseurl %]
14   [% stylesheets.join("\n") %]
15   [% IF project;
16     rss_link;
17     rss_link_no_merges;
18     atom_link;
19     atom_link_no_merges;
20   ELSE;
21     projects_list;
22     projects_feed;
23   END %]
24   [% favicon %]
25 </head>
26
27 <body>
28
29 [% site_header %]
30
31 <div class="page_header">
32   [% logo %]
33   [% home_link %] / [%
34   IF project;
35     summary;
36     IF action;  " / " _ action; END;
37   END %]
38 </div>
39
40 [% IF project AND have_search %]
41 <div class="search">
42   [% search_form %]
43 </div>
44 [% END %]
45
46 [%- # / git_header_html
47 -%]
48 [%
49   IF page_nav;
50     INCLUDE "page_nav.tt2";
51   END;
52
53   IF action;
54     INCLUDE "$action.tt2";
55   ELSE;
56     # The output of gitweb.cgi is injected at this point.
57     content;
58   END;
59 %]
60
61 [%- # git_footer_html
62 -%]
63 <div class="page_footer">
64 [%
65 IF project;
66   IF project_description
67 %]
68   <div class="page_footer_text">[% project_description %]</div>
69 [%
70   END;
71   rss_feed;
72   atom_feed;
73 ELSE;
74   opml_feed _ " " _ index_feed;
75 END %]
76 </div>
77
78 [% site_footer %]
79
80 </body>
81 </html>
82 [%- # / git_footer_html
83 -%]