From b8e87bda664faec8163c2571f0b9609e49b21f3d Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 25 Jan 2011 12:54:12 -0800 Subject: [PATCH] website: make gitweb header match rest of site --- website/camweb.go | 1 + website/gitweb-camli.conf | 2 +- website/tmpl/githeader.html | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 website/tmpl/githeader.html diff --git a/website/camweb.go b/website/camweb.go index d22049c32..89f7aff1d 100644 --- a/website/camweb.go +++ b/website/camweb.go @@ -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, diff --git a/website/gitweb-camli.conf b/website/gitweb-camli.conf index 080fbd66c..47fef7e11 100644 --- a/website/gitweb-camli.conf +++ b/website/gitweb-camli.conf @@ -27,7 +27,7 @@ $favicon = "/code/git-favicon.png"; $site_name = "Camlistore Git"; -$site_header = "

HEADER

"; +$site_header = "$ENV{CAMWEB_ROOT}/tmpl/githeader.html"; $home_link_str = "camlistore"; diff --git a/website/tmpl/githeader.html b/website/tmpl/githeader.html new file mode 100644 index 000000000..3adb20075 --- /dev/null +++ b/website/tmpl/githeader.html @@ -0,0 +1,16 @@ + + + + +
+ +