[%- IF no_wrapper || template.name.match('\.(css|js|txt)'); content; ELSE; -%]
-<!DOCTYPE html>
-<html lang="en">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<!-- git core binaries version [% git_version %] -->
- <meta charset="utf-8">
- <meta name="generator" content="gitweb/[% version %] git/[% git_version %][% mod_perl_version %]">
- <meta name="robots" content="index, nofollow">
- <title>[%-
+ <meta charset="utf-8" />
+ <meta name="generator" content="gitweb/[% version %] git/[% git_version %]" />
+ <meta name="robots" content="index, nofollow" />
+ <title>[%# FIXME - MING %][%-
title = BLOCK;
c.config.sitename;
IF Repository; ' - ' _ Repository.name | html; END;
- IF action; ' / ' _ action; END;
- IF filename; ' - ' _ filename | html; END;
- IF action && action == 'tree'; '/'; END;
+ IF c.action; ' / ' _ c.action; END;
+ IF filename; ' - ' _ filename | html; END;
+ IF c.action && c.action == 'tree'; '/'; END;
END;
title;
-%] (Gitalist)</title>
[% INCLUDE '_header_feeds.tt2' %]
- <link rel="stylesheet" href="[% c.uri_for('/static/css/blueprint/screen.css') %]" type="text/css" media="screen, projection">
- <link rel="stylesheet" href="[% c.uri_for('/static/css/blueprint/print.css') %]" type="text/css" media="print">
- <!--[if lt IE 8]>
- <link rel="stylesheet" href="[% c.uri_for('/static/css/blueprint/ie.css') %]" type="text/css" media="screen, projection">
- <![endif]-->
- <link rel="stylesheet" type="text/css" href="[% c.uri_for('/static/css/site.css') %]">
- <link rel="shortcut icon" href="[% c.uri_for('/static/git-favicon.png') %]" type="image/png">
+
+ <link rel="stylesheet" type="text/css" href="[% c.uri_for('/static/css/core.css') %]" />
+ <link rel="shortcut icon" href="[% c.uri_for('/static/git-favicon.png') %]" type="image/png" />
</head>
<body>
-<div id='the-container'>
+<div id="header">
+ <div class="sub_holder">
+ <a href="[% c.uri_for('/') %]" id="logo"><img src="[% c.uri_for('/static/i/logo.png') %]" alt="Gitalist" /></a>
+
+ <div class="search">
+ [% IF Repository; INCLUDE 'nav/search.tt2'; END %]
+ </div>
+
+
+ <div id="nav_logs" [% 'style="visibility:hidden"' IF c.action.name == "index" %]>
+ <ul>
+ [% IF c.req.captures.size == 1; SET path = 'repository'; ELSE; SET path = 'ref'; END %]
+ <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>
+ <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>
+ </ul>
+ </div>
+
+ <h1>
+ <a href="[% c.uri_for('/') %]">Home</a>
+
+ [%- IF Repository %]
+ / <a href="[% c.uri_for_action('/repository/summary', [Repository.name]) %]/shortlog">[% Repository.name %]</a>
+ [%- END %]
+ /
+
+ [% c.action.name.replace("_"," ").replace("log", " log") FILTER ucfirst %]
-[% site_header %]
-
-<div id="page-header">
- <a title="git homepage" href="http://git-scm.org">
- <img src="[% c.uri_for('/logo.png') %]" alt="git" class="logo">
- </a>
- <a href="[% c.uri_for('/', {p=''}) %]">A Gitalist</a>
- [%- IF Repository %]
- / <a href="[% c.uri_for('summary') %]">[% Repository.name %]</a>
- [% IF action; " / " _ action; END;
- END %]
-[%
- IF Repository;
- INCLUDE 'nav/search.tt2';
- END;
-# / git_header_html
-%]
+ </h1>
+
+ </div>
</div>
-<div id='body'>
-[%
- IF action;
- SET actmpl = action _ ".tt2";
- INCLUDE $actmpl;
- ELSE;
- # The output of gitweb.cgi is injected at this point.
- content;
- END;
-%]
-</div>
-<div id="page-footer">
-[% IF Repository %]
- [% Repository.description | html %]
-[% END %]
-[% INCLUDE '_footer_feeds.tt2' %]
+
+<div id="content_holder">
+ <div id="content" class="sub_holder">
+ <div id="content_inner">
+
+
+
+ [% content %]
+
+
+
+ [% INCLUDE 'nav/actions.tt2' %]
+ </div>
+ </div>
</div>
+<div id="footer">
+ <div class="sub_holder">
+ [%
+ IF Repository; Repository.description | html; END;
+ INCLUDE 'inc/footer_feeds.tt2';
+ %]
+ <a title="git homepage" href="http://git-scm.org"><img src="[% c.uri_for('/logo.png') %]" alt="git" /></a>
+ </div>
</div>
+
+
++[% USE Dumper %]
++<pre>
+[% Repository.path %]
++[% Dumper.dump(c.req.action) %]
++</pre>
+
</body>
</html>
[%- END -%]