diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/email/bexley/_email_color_overrides.html | 19 | ||||
-rw-r--r-- | templates/web/bexley/footer_extra_js.html | 13 | ||||
-rw-r--r-- | templates/web/bexley/header_extra.html | 1 | ||||
-rw-r--r-- | templates/web/bexley/header_logo.html | 2 | ||||
-rw-r--r-- | templates/web/bexley/main_nav_items.html | 55 | ||||
-rw-r--r-- | templates/web/bexley/tracking_code.html | 15 | ||||
-rw-r--r-- | templates/web/fixmystreet.com/footer_extra_js.html | 1 |
7 files changed, 106 insertions, 0 deletions
diff --git a/templates/email/bexley/_email_color_overrides.html b/templates/email/bexley/_email_color_overrides.html new file mode 100644 index 000000000..5645da3ef --- /dev/null +++ b/templates/email/bexley/_email_color_overrides.html @@ -0,0 +1,19 @@ +[% + +color_fuchsia = '#912B88' +color_spring = '#5DA70E' +color_white = '#fff' + +header_background_color = color_fuchsia +header_text_color = color_white + +secondary_column_background_color = color_white + +button_background_color = color_spring +button_text_color = color_white + +logo_width = "200" # pixel measurement, but without 'px' suffix +logo_height = "80" # pixel measurement, but without 'px' suffix +logo_file = "logo.png" + +%] diff --git a/templates/web/bexley/footer_extra_js.html b/templates/web/bexley/footer_extra_js.html new file mode 100644 index 000000000..f4b5652a1 --- /dev/null +++ b/templates/web/bexley/footer_extra_js.html @@ -0,0 +1,13 @@ +[% scripts.push( + version('/cobrands/fixmystreet-uk-councils/js.js'), +) %] +[%~ +IF bodyclass.match('mappage'); + scripts.push( + version('/vendor/OpenLayers.Projection.OrdnanceSurvey.js'), + version('/cobrands/fixmystreet/assets.js'), + version('/cobrands/bexley/js.js'), + version('/cobrands/highways/assets.js'), + ); +END +%] diff --git a/templates/web/bexley/header_extra.html b/templates/web/bexley/header_extra.html new file mode 100644 index 000000000..c5b1dcc6e --- /dev/null +++ b/templates/web/bexley/header_extra.html @@ -0,0 +1 @@ +<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,400i,700"> diff --git a/templates/web/bexley/header_logo.html b/templates/web/bexley/header_logo.html new file mode 100644 index 000000000..f0f9b2cc8 --- /dev/null +++ b/templates/web/bexley/header_logo.html @@ -0,0 +1,2 @@ + <a href="https://www.bexley.gov.uk" id="site-logo">London Borough of Bexley</a> + <a href="/" id="report-cta" title="[%- loc('Report a problem') -%]">[%- loc('Report') -%]</a> diff --git a/templates/web/bexley/main_nav_items.html b/templates/web/bexley/main_nav_items.html new file mode 100644 index 000000000..44edd68a8 --- /dev/null +++ b/templates/web/bexley/main_nav_items.html @@ -0,0 +1,55 @@ +[%~ IF problem ~%] + [%~ INCLUDE navitem uri='/report/new?longitude=' _ problem.longitude _ '&latitude=' _ problem.latitude label=loc('Report another problem here') attrs='class="report-a-problem-btn"' ~%] +[%~ ELSIF latitude AND longitude ~%] + [%~ INCLUDE navitem uri='/report/new?longitude=' _ longitude _ '&latitude=' _ latitude label=loc('Report a problem here') attrs='class="report-a-problem-btn"' ~%] +[%~ ELSIF homepage_template ~%] + [%~ INCLUDE navitem uri='/report' label=loc('Report a problem') attrs='class="report-a-problem-btn"' ~%] +[%~ ELSE ~%] + [%~ INCLUDE navitem uri='/' label=loc('Report a problem') attrs='class="report-a-problem-btn"' ~%] +[%~ END ~%] + +[%~ UNLESS hide_all_reports_link ~%] + [%~ + IF c.user_exists AND c.user.categories.size; + categories = c.user.categories_string | uri; + cat_suffix = "?filter_category=" _ categories; + END; + + reports_uri = '/reports'; + IF body_name; + body_name = body_name | uri; + reports_uri = "${reports_uri}/${body_name}"; + END; + + INCLUDE navitem uri=reports_uri label=loc('All reports') suffix=cat_suffix; + ~%] +[%~ END ~%] + +[%~ + IF pc; + pc_uri = pc | uri; + pc_suffix = "/list?pc=" _ pc_uri; + END; + + INCLUDE navitem uri='/alert' label=loc('Local alerts') suffix=pc_suffix; +~%] + +[%~ INCLUDE navitem uri='/faq' label=loc('Help') ~%] + +[%~ UNLESS hide_privacy_link ~%] + [%~ INCLUDE navitem uri='/privacy' label=loc('Privacy') liattrs='class="nav-menu__item--privacy"' ~%] +[%~ END ~%] + +[%~ IF c.user_exists ~%] + [%~ INCLUDE navitem uri='/my' label=loc('Your account') ~%] +[%~ ELSE ~%] + [%~ INCLUDE navitem uri='/auth' label=loc('Sign in') ~%] +[%~ END ~%] + +[%~ IF c.user_exists AND c.user.has_body_permission_to('planned_reports') ~%] + [%~ INCLUDE navitem always_url=1 uri='/my/planned' label=loc('Shortlist') ~%] +[%~ END ~%] + +[%~ IF c.user_exists AND c.cobrand.admin_allow_user(c.user) ~%] + [%~ INCLUDE navitem uri='/admin' label=loc('Admin') ~%] +[%~ END ~%] diff --git a/templates/web/bexley/tracking_code.html b/templates/web/bexley/tracking_code.html new file mode 100644 index 000000000..dff0b4607 --- /dev/null +++ b/templates/web/bexley/tracking_code.html @@ -0,0 +1,15 @@ +[% IF c.config.BASE_URL == "https://www.fixmystreet.com" %] +<script nonce="[% csp_nonce %]"> +(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ +(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), +m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) +})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); + +ga('create', 'UA-96119487-1', 'auto'); +ga('set', 'anonymizeIp', true); +ga('send', 'pageview'); + +</script> +[% ELSE %] +<!-- Tracking code not inserted as "[% c.config.BASE_URL %]" not "https://www.fixmystreet.com" --> +[% END %] diff --git a/templates/web/fixmystreet.com/footer_extra_js.html b/templates/web/fixmystreet.com/footer_extra_js.html index cb570a169..61f260fe8 100644 --- a/templates/web/fixmystreet.com/footer_extra_js.html +++ b/templates/web/fixmystreet.com/footer_extra_js.html @@ -6,6 +6,7 @@ IF bodyclass.match('mappage'); scripts.push( version('/cobrands/fixmystreet/assets.js') ); scripts.push( version('/cobrands/fixmystreet-uk-councils/alloy.js') ); scripts.push( version('/cobrands/bathnes/assets.js') ); + scripts.push( version('/cobrands/bexley/js.js') ); scripts.push( version('/cobrands/bristol/assets.js') ); scripts.push( version('/cobrands/bromley/assets.js') ); scripts.push( version('/cobrands/buckinghamshire/assets.js') ); |