website: make gitweb header match rest of site

This commit is contained in:
Brad Fitzpatrick 2011-01-25 12:54:12 -08:00
parent d4b274c08c
commit b8e87bda66
3 changed files with 18 additions and 1 deletions

View File

@ -196,6 +196,7 @@ func main() {
if *gitwebScript != "" {
env := os.Environ()
env = append(env, "GITWEB_CONFIG="+path.Join(*root, "gitweb-camli.conf"))
env = append(env, "CAMWEB_ROOT="+path.Join(*root))
mux.Handle("/code/", &gitwebHandler{
Cgi: &CgiHandler{
ExecutablePath: *gitwebScript,

View File

@ -27,7 +27,7 @@ $favicon = "/code/git-favicon.png";
$site_name = "Camlistore Git";
$site_header = "<h1>HEADER</h1>";
$site_header = "$ENV{CAMWEB_ROOT}/tmpl/githeader.html";
$home_link_str = "camlistore";

View File

@ -0,0 +1,16 @@
<link rel="stylesheet" href="/static/all.css" type="text/css" media="all" charset="utf-8" />
<div id='header'>
<a href="/"><img width='788' height='161' src='/static/camli-header.png' title="Camlistore" border='0' /></a>
</div>
<center><div style="display:block; max-width: 788px;">
<div class='bar'><div class='hatecss'>
<a href='/'>About</a>
<a href='/code/'>Code</a>
<a href='/contributors'>Contributors</a>
<a href='http://groups.google.com/group/camlistore/'>Mailing List</a>
<a href='http://code.google.com/p/camlistore/w/list'>Wiki</a>
<a href='http://code.google.com/p/camlistore/issues/list'>Bugs</a>
</div></div>
</div></center>