diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-07-07 22:28:21 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-07-14 14:22:24 +0100 |
commit | 6f23d7b44ddc2556897e920cb88a3c81357605bf (patch) | |
tree | 48be64c12f96048a5df42888f34b0ada91d98a69 /templates | |
parent | 863e8b2d548d95b89da068bd3361ce8131f77f55 (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.html | 2 |
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') ~%] |