A rough cut of the /search action.
[catagits/Gitalist.git] / templates / default.tt2
index 55947fe..b8618e8 100644 (file)
@@ -9,19 +9,22 @@
   <meta http-equiv="content-type" content="[% content_type %]; charset=utf-8"/>
   <meta name="generator" content="gitweb/[% version %] git/[% git_version %][% mod_perl_version %]"/>
   <meta name="robots" content="index, nofollow"/>
-  <title>[% title %] (Gitalist)</title>
-  [% baseurl %]
-  [% stylesheets.join("\n") %]
-  [% IF project;
-    rss_link;
-    rss_link_no_merges;
-    atom_link;
-    atom_link_no_merges;
-  ELSE;
-    projects_list;
-    projects_feed;
-  END %]
-  [% favicon %]
+  <title>[% title | html %] (Gitalist)</title>
+  [% IF baseurl %]
+  <base href="[% baseurl %]" />
+  [% END %]
+  <link rel="stylesheet" type="text/css" href="/static/css/site.css"/>
+  <link rel="stylesheet" type="text/css" href="[% stylesheet %]"/>
+  [% FOR link IN links %]
+            <link rel="[% link.rel %]"
+                  title="[% link.title %]"
+                  href="[% link.href %]"
+                  type="[% link.type %]"
+            />
+  [% END %]
+  [% IF favicon %]
+  <link rel="shortcut icon" href="[% favicon %]" type="image/png" />
+  [% END %]
 </head>
 
 <body>
 [% site_header %]
 
 <div class="page_header">
-  [% logo %]
-  [% home_link %] / [%
-  IF project;
-    summary;
-    IF action;  " / " _ action; END;
+  <a title="[% logo_label | url %]" href="[% logo_url | url %]"><img src="[% logo_img %]" alt="git" class="logo"/></a>
+  <a href="[% home_link | url %]">[% home_link_str %]</a>
+  [%- IF project %]
+  / <a href="/summary?p=[% project %]">[% project %]</a>
+  [% IF action;  " / " _ action; END;
   END %]
 </div>
 
-[% IF project AND have_search %]
-<div class="search">
-  [% search_form %]
-</div>
-[% END %]
-
-[%- # / git_header_html
--%]
 [%
-  IF page_nav;
-    INCLUDE "page_nav.tt2";
+  IF project;
+    INCLUDE 'nav/search.tt2';
   END;
+# / git_header_html
 %]
+<div id='body'>
 [%
-# The output of gitweb.cgi is injected at this point.
-content %]
+  IF action;
+    SET actmpl = action _ ".tt2";
+    INCLUDE $actmpl;
+  ELSE;
+    # The output of gitweb.cgi is injected at this point.
+    content;
+  END;
+%]
+</div>
 
 [%- # git_footer_html
 -%]
 <div class="page_footer">
-[%
-IF project;
-  IF project_description
-%]
-  <div class="page_footer_text">[% project_description %]</div>
-[%
-  END;
-  rss_feed;
-  atom_feed;
-ELSE;
-  opml_feed _ " " _ index_feed;
-END %]
+[% IF project AND project_description %]
+  <div class="page_footer_text">[% project_description | html %]</div>
+[% END %]
+[% FOR feed IN feeds %]
+    <a class="[% feed.class %]" title="[% feed.title %]" href="[% feed.href %]">[% feed.name %]</a>
+[% END %]
 </div>
 
 [% site_footer %]