aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-07-07 22:28:21 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-07-14 14:22:24 +0100
commit6f23d7b44ddc2556897e920cb88a3c81357605bf (patch)
tree48be64c12f96048a5df42888f34b0ada91d98a69 /templates
parent863e8b2d548d95b89da068bd3361ce8131f77f55 (diff)
Allow static home page template override.
If an /about/homepage.html template exists in your cobrand, it will be used as the front page, and the normal front page will be available at /report.
Diffstat (limited to 'templates')
-rw-r--r--templates/web/base/main_nav_items.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/web/base/main_nav_items.html b/templates/web/base/main_nav_items.html
index 6b5e09e56..845ef7c65 100644
--- a/templates/web/base/main_nav_items.html
+++ b/templates/web/base/main_nav_items.html
@@ -1,4 +1,4 @@
-[%~ INCLUDE navitem uri='/' label=loc('Report a problem') attrs='class="report-a-problem-btn"' ~%]
+[%~ INCLUDE navitem uri=(homepage_template ? '/report' : '/') label=loc('Report a problem') attrs='class="report-a-problem-btn"' ~%]
[%~ IF c.user_exists ~%]
[%~ INCLUDE navitem uri='/my' label=loc('Your account') ~%]