From 20ca4e9e509a111f8de0069feeac54e3b31098ee Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Fri, 19 Apr 2013 13:28:19 +0100 Subject: Allow usage in a subdir of a host. --- data/config.default.php | 1 + data/config.php.dist | 1 + data/templates/base.htm | 29 +++++++++++++++-------------- data/templates/display-sidebar-history.htm | 2 +- data/templates/exception.htm | 5 +++-- data/templates/forbidden.htm | 2 +- data/templates/fork-remote-multiple.htm | 2 +- data/templates/fork-remote-new.htm | 2 +- data/templates/login.htm | 6 +++--- data/templates/new.htm | 2 +- 10 files changed, 28 insertions(+), 24 deletions(-) (limited to 'data') diff --git a/data/config.default.php b/data/config.default.php index a589924..56ddc43 100644 --- a/data/config.default.php +++ b/data/config.default.php @@ -4,6 +4,7 @@ $GLOBALS['phorkie']['cfg'] = array( 'gitdir' => __DIR__ . '/../repos/git/', 'workdir' => __DIR__ . '/../repos/work/', 'tpl' => __DIR__ . '/templates/', + 'baseurl' => '/', 'css' => '', 'title' => 'phorkie', 'topbar' => '', diff --git a/data/config.php.dist b/data/config.php.dist index ced993f..77d2005 100644 --- a/data/config.php.dist +++ b/data/config.php.dist @@ -1,4 +1,5 @@ - + + - - - + + + {% if css %} {% endif %} {% block title %}{% endblock %} - {{title}} - - - + + + {% block meta %}{% endblock %} @@ -22,17 +23,17 @@