1 [%- IF no_wrapper || template.name.match('\.(css|js|txt)'); content; ELSE; -%]
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">
6 <!-- git core binaries version [% git_version %] -->
7 <meta charset="utf-8" />
8 <meta name="generator" content="gitweb/[% version %] git/[% git_version %]" />
9 <meta name="robots" content="index, nofollow" />
10 <title>[%# FIXME - MING %][%-
13 IF Repository; ' - ' _ Repository.name | html; END;
14 IF c.action; ' / ' _ c.action; END;
15 IF filename; ' - ' _ filename | html; END;
16 IF c.action && c.action == 'tree'; '/'; END;
19 -%] (Gitalist)</title>
20 [% INCLUDE '_header_feeds.tt2' %]
22 <link rel="stylesheet" type="text/css" href="[% c.uri_for('/core.css') %]" />
23 <link rel="shortcut icon" href="[% c.uri_for('/static/git-favicon.png') %]" type="image/png" />
24 <script type="text/javascript">
25 // FIXME: this should be in an external js file once c.uri_for works in js files
26 function compareDiffs(repo, path){
27 var f = document.theform;
35 for(var i=0,len=f.length;i<len;i++){
36 if(f[i].name == "sha1_a"){
41 if(f[i].name == "sha1_b"){
47 document.location.href = "[% c.uri_for("/") %]" + repo + "/"+ sha1 + "/diff/" + sha2 + "/" + path;
54 <div id="header_holder">
55 <div class="sub_holder">
57 <a href="[% c.uri_for('/') %]" id="logo"><img src="[% c.uri_for('/static/i/logo.png') %]" alt="Gitalist" /></a>
60 [% IF Repository; INCLUDE 'nav/search.tt2'; ELSE; %]
62 <form method="get" action="[% c.uri_for_action('/search') %]" enctype="application/x-www-form-urlencoded">
63 <p class="projsearch">Search:
64 <input type="text" name="s" value="[% search_text %]" />
72 <div id="nav_logs" [% 'style="visibility:hidden"' IF c.action.name == "index" %]>
74 [% IF c.req.captures.size == 1; SET path = 'repository'; ELSE; SET path = 'ref'; END %]
77 <li[% ' class="selected"' IF c.action.name.match('tree') %]><a href="[% c.uri_for_action('/ref/tree', c.req.captures) %]" id="tree">Tree</a></li>
79 <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>
81 <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>
84 <li id="branch_selector">
85 [%# FIXME: convert to c.uri_for_action #%]
88 <select onchange="document.location.href='/[% Repository.name %]/'+this.options[this.selectedIndex].text + '/shortlog';">
89 <option value="">HEAD</option>
91 [% FOREACH branch_head IN Repository.heads %]
92 <option [% "selected" IF c.req.path.search(branch_head.name) %]>[% branch_head.name %]</option>
102 <a href="[% c.uri_for('/') %]">Home</a>
105 / <a href="[% c.uri_for_action('/repository/summary', [Repository.name]) %]/shortlog">[% Repository.name %]</a>
109 [%# FIXME: output branch name in a nicer way!!! #%]
110 [% FOREACH branch_head IN Repository.heads %]
111 [% IF c.req.path.search(branch_head.name) %]
112 <a href="[% c.uri_for_action('/repository/summary', [Repository.name]) %]/[% branch_head.name %]/shortlog">[% branch_head.name %]</a> /
120 .replace("log", " log")
122 .replace("index","Repositories")
134 <div id="content_holder">
135 <div id="content" class="sub_holder">
136 <div id="content_inner">
147 <div id="footer_holder">
148 <div id="footer" class="sub_holder">
150 <p>[% IF Repository; Repository.description | html; END; %]</p>
152 <a title="git homepage" href="http://git-scm.org"><img src="[% c.uri_for('/logo.png') %]" id="git_logo" alt="git" /></a>
155 [% INCLUDE 'inc/footer_feeds.tt2' %]
163 <div id="debug_holder">
164 <div id="debug" class="sub_holder">
170 [% Repository.path %]
171 [%# Dumper.dump(c.req.arguments.0) %]