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 @@ + + + + +
+ +