From 683bc0b0898df79a6281ebcab93045b79649484e Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Mon, 19 Jan 2015 16:53:42 +0000 Subject: Use site_name to genericise default submit.txt. --- templates/email/default/submit-brent.txt | 43 ---------------------------- templates/email/default/submit.txt | 15 +++------- templates/email/fixmystreet/submit-brent.txt | 43 ++++++++++++++++++++++++++++ templates/email/fixmystreet/submit.txt | 43 ++++++++++++++++++++++++++++ 4 files changed, 90 insertions(+), 54 deletions(-) delete mode 100644 templates/email/default/submit-brent.txt create mode 100644 templates/email/fixmystreet/submit-brent.txt create mode 100644 templates/email/fixmystreet/submit.txt diff --git a/templates/email/default/submit-brent.txt b/templates/email/default/submit-brent.txt deleted file mode 100644 index 37adde4df..000000000 --- a/templates/email/default/submit-brent.txt +++ /dev/null @@ -1,43 +0,0 @@ -Subject: FMS Problem Report: - -Dear , - -A user of -FixMyStreet has submitted the following report -of a local problem that they believe might require your attention. - -, or to provide an update on the problem, -please visit the following link: - - - ----------- - -Name: - -Email: - -Subject: - -Details: - -Latitude: - -Longitude: - ----------- - -Replies to this email will go to the user who submitted the problem. - - - -This message was sent via FixMyStreet, a project of UKCOD, registered charity -number 1076346. If there is a more appropriate email address for messages about -, please let us know by visiting . -This will help improve the service for local people. We -also welcome any other feedback you may have. - -FixMyStreet is now available for full integration into council -websites, making life easier for both you and your residents. -Read more here: https://www.fixmystreet.com/council - diff --git a/templates/email/default/submit.txt b/templates/email/default/submit.txt index 315411fb4..0ab29e412 100644 --- a/templates/email/default/submit.txt +++ b/templates/email/default/submit.txt @@ -3,7 +3,7 @@ Subject: Problem Report: Dear , A user of -FixMyStreet has submitted the following report + has submitted the following report of a local problem that they believe might require your attention. , or to provide an update on the problem, @@ -31,13 +31,6 @@ Replies to this email will go to the user who submitted the problem. -This message was sent via FixMyStreet, a project of UKCOD, registered charity -number 1076346. If there is a more appropriate email address for messages about -, please let us know by visiting . -This will help improve the service for local people. We -also welcome any other feedback you may have. - -FixMyStreet is now available for full integration into council -websites, making life easier for both you and your residents. -Read more here: https://www.fixmystreet.com/council - +If there is a more appropriate email address for messages about +, please let us know. This will help improve the +service for local people. We also welcome any other feedback you may have. diff --git a/templates/email/fixmystreet/submit-brent.txt b/templates/email/fixmystreet/submit-brent.txt new file mode 100644 index 000000000..37adde4df --- /dev/null +++ b/templates/email/fixmystreet/submit-brent.txt @@ -0,0 +1,43 @@ +Subject: FMS Problem Report: + +Dear , + +A user of +FixMyStreet has submitted the following report +of a local problem that they believe might require your attention. + +, or to provide an update on the problem, +please visit the following link: + + + +---------- + +Name: + +Email: + +Subject: + +Details: + +Latitude: + +Longitude: + +---------- + +Replies to this email will go to the user who submitted the problem. + + + +This message was sent via FixMyStreet, a project of UKCOD, registered charity +number 1076346. If there is a more appropriate email address for messages about +, please let us know by visiting . +This will help improve the service for local people. We +also welcome any other feedback you may have. + +FixMyStreet is now available for full integration into council +websites, making life easier for both you and your residents. +Read more here: https://www.fixmystreet.com/council + diff --git a/templates/email/fixmystreet/submit.txt b/templates/email/fixmystreet/submit.txt new file mode 100644 index 000000000..315411fb4 --- /dev/null +++ b/templates/email/fixmystreet/submit.txt @@ -0,0 +1,43 @@ +Subject: Problem Report: + +Dear , + +A user of +FixMyStreet has submitted the following report +of a local problem that they believe might require your attention. + +, or to provide an update on the problem, +please visit the following link: + + + +---------- + +Name: + +Email: + +Subject: + +Details: + +Latitude: + +Longitude: + +---------- + +Replies to this email will go to the user who submitted the problem. + + + +This message was sent via FixMyStreet, a project of UKCOD, registered charity +number 1076346. If there is a more appropriate email address for messages about +, please let us know by visiting . +This will help improve the service for local people. We +also welcome any other feedback you may have. + +FixMyStreet is now available for full integration into council +websites, making life easier for both you and your residents. +Read more here: https://www.fixmystreet.com/council + -- cgit v1.2.3 From 311dabb07a166ad44b5c5259358f17ed74a1d1b3 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 15 Jan 2015 18:10:13 +0000 Subject: Move site_title function to site-name web template This matches the email template behaviour, and makes it much easier to override without requiring a cobrand package file. Fixes #979. --- perllib/FixMyStreet/App.pm | 8 +++---- perllib/FixMyStreet/App/Controller/Report.pm | 3 ++- perllib/FixMyStreet/Cobrand/Default.pm | 8 ------- perllib/FixMyStreet/Cobrand/FixMindelo.pm | 2 -- perllib/FixMyStreet/Cobrand/FixaMinGata.pm | 5 ----- perllib/FixMyStreet/Cobrand/MakeMyIsland.pm | 2 -- perllib/FixMyStreet/Cobrand/SeeSomething.pm | 2 -- perllib/FixMyStreet/Cobrand/ZeroTB.pm | 2 -- perllib/FixMyStreet/DB/ResultSet/Questionnaire.pm | 2 -- templates/web/barnet/header.html | 2 +- templates/web/barnet/site-name.html | 1 + templates/web/base/admin/config_page.html | 5 ++++- templates/web/base/admin/index.html | 2 +- templates/web/base/common_header_tags.html | 2 +- templates/web/base/faq/faq-en-gb.html | 26 +++++++++++------------ templates/web/base/site-name.html | 1 + templates/web/base/static/privacy.html | 2 +- templates/web/bromley/header.html | 2 +- templates/web/bromley/site-name.html | 1 + templates/web/eastsussex/header.html.template | 2 +- templates/web/emptyhomes/header.html | 2 +- templates/web/emptyhomes/site-name.html | 1 + templates/web/fiksgatami/header.html | 2 +- templates/web/fiksgatami/site-name.html | 1 + templates/web/fixamingata/site-name.html | 1 + templates/web/fixmindelo/site-name.html | 1 + templates/web/fixmybarangay/header.html | 2 +- templates/web/fixmybarangay/site-name.html | 1 + templates/web/fixmystreet/header.html | 2 +- templates/web/fixmystreet/header_logo.html | 2 +- templates/web/fixmystreet/header_opengraph.html | 2 +- templates/web/harrogate/header.html | 2 +- templates/web/harrogate/static/privacy.html | 2 +- templates/web/hart/header.html | 12 ++--------- templates/web/makemyisland/header_logo.html | 2 +- templates/web/makemyisland/site-name.html | 1 + templates/web/oxfordshire/header.html | 2 +- templates/web/seesomething/site-name.html | 1 + templates/web/stevenage/header.html | 2 +- templates/web/stevenage/site-name.html | 1 + templates/web/warwickshire/header.html | 2 +- templates/web/zerotb/site-name.html | 1 + templates/web/zurich/header.html | 2 +- templates/web/zurich/site-name.html | 1 + 44 files changed, 57 insertions(+), 71 deletions(-) create mode 100644 templates/web/barnet/site-name.html create mode 100644 templates/web/base/site-name.html create mode 100644 templates/web/bromley/site-name.html create mode 100644 templates/web/emptyhomes/site-name.html create mode 100644 templates/web/fiksgatami/site-name.html create mode 100644 templates/web/fixamingata/site-name.html create mode 100644 templates/web/fixmindelo/site-name.html create mode 100644 templates/web/fixmybarangay/site-name.html create mode 100644 templates/web/makemyisland/site-name.html create mode 100644 templates/web/seesomething/site-name.html create mode 100644 templates/web/stevenage/site-name.html create mode 100644 templates/web/zerotb/site-name.html create mode 100644 templates/web/zurich/site-name.html diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm index fd70ffda8..769a6bb8f 100644 --- a/perllib/FixMyStreet/App.pm +++ b/perllib/FixMyStreet/App.pm @@ -12,6 +12,7 @@ use Memcached; use mySociety::Email; use mySociety::Random qw(random_bytes); use FixMyStreet::Map; +use Utils; use Path::Class; use URI; @@ -388,10 +389,9 @@ sub send_email_cron { $sig = Encode::decode('utf8', $sig); $params->{_parameters_}->{signature} = $sig; - $tt->process( 'site_name.txt', $params, \$site_name ); - $site_name = Encode::decode('utf8', $site_name); - my $site_title = $cobrand ? $cobrand->site_title : ''; - $params->{_parameters_}->{site_name} = $site_name || $site_title; + $tt->process( 'site-name.txt', $params, \$site_name ); + $site_name = Utils::trim_text(Encode::decode('utf8', $site_name)); + $params->{_parameters_}->{site_name} = $site_name; $params->{_line_indent} = ''; my $email = mySociety::Locale::in_gb_locale { mySociety::Email::construct_email($params) }; diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index c20a6754a..88a49f6c9 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -112,9 +112,10 @@ sub load_problem_or_display_error : Private { ); } elsif ( $problem->non_public ) { if ( !$c->user || $c->user->id != $problem->user->id ) { + my $site_name = Utils::trim_text($c->render_fragment('site-name.html')); $c->detach( '/page_error_403_access_denied', - [ sprintf(_('That report cannot be viewed on %s.'), $c->cobrand->site_title) ] # + [ sprintf(_('That report cannot be viewed on %s.'), $site_name) ] # ); } } diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm index ec7a8a81d..7f1fba67a 100644 --- a/perllib/FixMyStreet/Cobrand/Default.pm +++ b/perllib/FixMyStreet/Cobrand/Default.pm @@ -146,14 +146,6 @@ Can be specified in template. sub enter_postcode_text { } -=head2 site_title - -The name of the site - -=cut - -sub site_title { return 'FixMyStreet'; } - =head2 set_lang_and_domain my $set_lang = $cobrand->set_lang_and_domain( $lang, $unicode, $dir ) diff --git a/perllib/FixMyStreet/Cobrand/FixMindelo.pm b/perllib/FixMyStreet/Cobrand/FixMindelo.pm index fd3a55c6c..59debf157 100644 --- a/perllib/FixMyStreet/Cobrand/FixMindelo.pm +++ b/perllib/FixMyStreet/Cobrand/FixMindelo.pm @@ -4,8 +4,6 @@ use base 'FixMyStreet::Cobrand::Default'; use strict; use warnings; -sub site_title { return 'FixMindelo'; } - sub country { return 'CV'; } diff --git a/perllib/FixMyStreet/Cobrand/FixaMinGata.pm b/perllib/FixMyStreet/Cobrand/FixaMinGata.pm index 98c157aef..60f98dd47 100644 --- a/perllib/FixMyStreet/Cobrand/FixaMinGata.pm +++ b/perllib/FixMyStreet/Cobrand/FixaMinGata.pm @@ -9,11 +9,6 @@ use mySociety::MaPit; use FixMyStreet::Geocode::FixaMinGata; use DateTime; -sub site_title { - my ($self) = @_; - return 'FixaMinGata'; -} - sub country { return 'SE'; } diff --git a/perllib/FixMyStreet/Cobrand/MakeMyIsland.pm b/perllib/FixMyStreet/Cobrand/MakeMyIsland.pm index ebeb15fbb..f263df4cc 100644 --- a/perllib/FixMyStreet/Cobrand/MakeMyIsland.pm +++ b/perllib/FixMyStreet/Cobrand/MakeMyIsland.pm @@ -4,8 +4,6 @@ use base 'FixMyStreet::Cobrand::Default'; use strict; use warnings; -sub site_title { return 'MakeMyIsland'; } - sub country { return 'MV'; } diff --git a/perllib/FixMyStreet/Cobrand/SeeSomething.pm b/perllib/FixMyStreet/Cobrand/SeeSomething.pm index 5e6d3a8cd..775ba770b 100644 --- a/perllib/FixMyStreet/Cobrand/SeeSomething.pm +++ b/perllib/FixMyStreet/Cobrand/SeeSomething.pm @@ -9,8 +9,6 @@ sub council_area { return 'West Midlands'; } sub council_name { return 'See Something Say Something'; } sub council_url { return 'seesomething'; } sub area_types { [ 'MTD' ] } -sub site_title { return 'See Something, Say Something'; } - sub site_restriction { my $self = shift; diff --git a/perllib/FixMyStreet/Cobrand/ZeroTB.pm b/perllib/FixMyStreet/Cobrand/ZeroTB.pm index 087bf0912..cdf4e5ad4 100644 --- a/perllib/FixMyStreet/Cobrand/ZeroTB.pm +++ b/perllib/FixMyStreet/Cobrand/ZeroTB.pm @@ -4,8 +4,6 @@ use base 'FixMyStreet::Cobrand::Default'; use strict; use warnings; -sub site_title { return 'ZeroTB'; } - sub enter_postcode_text { return _ ('Enter a nearby street name and area, postal code or district in Delhi'); } sub country { diff --git a/perllib/FixMyStreet/DB/ResultSet/Questionnaire.pm b/perllib/FixMyStreet/DB/ResultSet/Questionnaire.pm index 646967bfc..63a91697d 100644 --- a/perllib/FixMyStreet/DB/ResultSet/Questionnaire.pm +++ b/perllib/FixMyStreet/DB/ResultSet/Questionnaire.pm @@ -92,8 +92,6 @@ sub send_questionnaires_period { . $row->user->email . "\n" if $params->{verbose}; - $h{site_name} = $cobrand->site_title(); - my $result = FixMyStreet::App->send_email_cron( { _template_ => $template, diff --git a/templates/web/barnet/header.html b/templates/web/barnet/header.html index 7b296c208..0e9bbfa42 100644 --- a/templates/web/barnet/header.html +++ b/templates/web/barnet/header.html @@ -30,7 +30,7 @@ - [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js', site_title = 'Barnet Council FixMyStreet' %] + [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js' %] diff --git a/templates/web/barnet/site-name.html b/templates/web/barnet/site-name.html new file mode 100644 index 000000000..78563bdf3 --- /dev/null +++ b/templates/web/barnet/site-name.html @@ -0,0 +1 @@ +Barnet Council FixMyStreet diff --git a/templates/web/base/admin/config_page.html b/templates/web/base/admin/config_page.html index 0b29590e4..211d41f31 100644 --- a/templates/web/base/admin/config_page.html +++ b/templates/web/base/admin/config_page.html @@ -39,7 +39,10 @@ running version [% git_version || 'unknown' %]. [% INCLUDE with_cobrand value="ADMIN_BASE_URL" cob=c.cobrand.admin_base_url %] [% INCLUDE subsection heading="Display" %] -[% INCLUDE just_value value="Site title" conf = c.cobrand.site_title %] + + Site title + [% PROCESS 'site-name.html' -%] + [% allowed_conf = FOR k IN c.config.ALLOWED_COBRANDS %] [% IF k.keys %][% k.items.join(':') %][% ELSE %][% k %][% END %] [%- ',' IF NOT loop.last %] diff --git a/templates/web/base/admin/index.html b/templates/web/base/admin/index.html index 17f7bd22a..c9d2b8deb 100644 --- a/templates/web/base/admin/index.html +++ b/templates/web/base/admin/index.html @@ -1,7 +1,7 @@ [% INCLUDE 'admin/header.html' title=loc('Summary') -%]
-This is the administration interface for [% c.cobrand.site_title %]. If you +This is the administration interface for [% PROCESS 'site-name.html' -%]. If you need any help or guidance, there is plenty of online documentation. The FixMyStreet Platform is actively supported by diff --git a/templates/web/base/common_header_tags.html b/templates/web/base/common_header_tags.html index 49b649eca..16098b7f5 100644 --- a/templates/web/base/common_header_tags.html +++ b/templates/web/base/common_header_tags.html @@ -42,5 +42,5 @@ [% "$title :: " | html IF title %] - [% site_title || 'FixMyStreet' %] + [% PROCESS 'site-name.html' -%] diff --git a/templates/web/base/faq/faq-en-gb.html b/templates/web/base/faq/faq-en-gb.html index 55046ce4a..e1e07a8d7 100755 --- a/templates/web/base/faq/faq-en-gb.html +++ b/templates/web/base/faq/faq-en-gb.html @@ -5,7 +5,7 @@
@@ -15,15 +15,15 @@
What is this site?
-
[% c.cobrand.site_title %] is a site to help people report to their +
[% PROCESS 'site-name.html' -%] is a site to help people report to their local authority, view, or discuss local issues they’ve found, by simply locating them on a map.
-
How do I get in touch with [% c.cobrand.site_title %]?
+
How do I get in touch with [% PROCESS 'site-name.html' -%]?
Here’s our contact page.
-
What sort of problems should I report with [% c.cobrand.site_title %]?
-
This depends upon the precise purpose of [% c.cobrand.site_title %]; +
What sort of problems should I report with [% PROCESS 'site-name.html' -%]?
+
This depends upon the precise purpose of [% PROCESS 'site-name.html' -%]; in the UK, FixMyStreet is primarily for reporting things which are broken or dirty or damaged or dumped, and need fixing, cleaning or clearing, such as: @@ -38,8 +38,8 @@
-
What isn’t [% c.cobrand.site_title %] for?
-
[% c.cobrand.site_title %] is not a way of getting in touch with your +
What isn’t [% PROCESS 'site-name.html' -%] for?
+
[% PROCESS 'site-name.html' -%] is not a way of getting in touch with your authority for all issues – please use this site only for problems such as the above. We often route problem reports via cleansing services or highways and so using this site for other matters may result in a delay in @@ -75,9 +75,9 @@ a registered charity, so if you want to make a contribution, please do.
-
Can I use [% c.cobrand.site_title %] on my mobile?
+
Can I use [% PROCESS 'site-name.html' -%] on my mobile?
-

The [% c.cobrand.site_title %] website will already work on your mobile +

The [% PROCESS 'site-name.html' -%] website will already work on your mobile phone, adapting to the size of your screen automatically.

@@ -90,18 +90,18 @@ to find out where reports go at the moment. Also contact us to update the address or addresses we use. -
I’m from an authority, can we have [% c.cobrand.site_title %] +
I’m from an authority, can we have [% PROCESS 'site-name.html' -%] on our website?
Quite possibly – contact the people who run this site.
Do you remove silly or illegal content?
-
[% c.cobrand.site_title %] is not responsible for the content and +
[% PROCESS 'site-name.html' -%] is not responsible for the content and accuracy of material submitted by its users. We reserve the right to edit or remove any problems or updates which we consider to be inappropriate upon being informed by a user of the site.
Why can’t I zoom out more on the reporting map?
-
We want to keep [% c.cobrand.site_title %] locally focused, so restrict +
We want to keep [% PROCESS 'site-name.html' -%] locally focused, so restrict the ability to move radically between areas. The map on Your Reports will let you see all the reports you’ve made, wherever they are. If you’re from the authority then the emailed version of the problem @@ -111,7 +111,7 @@ to update the address or addresses we use.

Organisation Questions

-
Who built [% c.cobrand.site_title %]?
+
Who built [% PROCESS 'site-name.html' -%]?
This will depend upon the installation of the FixMyStreet Platform, who should create their own faq/ template in their cobrand directory to replace this default one. The FixMyStreet Platform was diff --git a/templates/web/base/site-name.html b/templates/web/base/site-name.html new file mode 100644 index 000000000..4e9a24bb9 --- /dev/null +++ b/templates/web/base/site-name.html @@ -0,0 +1 @@ +FixMyStreet diff --git a/templates/web/base/static/privacy.html b/templates/web/base/static/privacy.html index 55d8531f4..36720207b 100755 --- a/templates/web/base/static/privacy.html +++ b/templates/web/base/static/privacy.html @@ -7,7 +7,7 @@ diff --git a/templates/web/bromley/header.html b/templates/web/bromley/header.html index 7d7e21a39..4f885f513 100644 --- a/templates/web/bromley/header.html +++ b/templates/web/bromley/header.html @@ -20,7 +20,7 @@ - [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js', site_title = "London Borough of Bromley - Report a problem in Bromley’s streets or parks" %] + [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js' %] - [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js', site_title = c.cobrand.site_title %] + [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js' %] [% extra_js %] diff --git a/templates/web/emptyhomes/header.html b/templates/web/emptyhomes/header.html index fea973468..de1ecec7b 100644 --- a/templates/web/emptyhomes/header.html +++ b/templates/web/emptyhomes/header.html @@ -9,7 +9,7 @@ - [% INCLUDE 'common_header_tags.html', site_title = loc('Report Empty Homes') %] + [% INCLUDE 'common_header_tags.html' %] diff --git a/templates/web/emptyhomes/site-name.html b/templates/web/emptyhomes/site-name.html new file mode 100644 index 000000000..7fd286328 --- /dev/null +++ b/templates/web/emptyhomes/site-name.html @@ -0,0 +1 @@ +[% loc('Report Empty Homes') %] diff --git a/templates/web/fiksgatami/header.html b/templates/web/fiksgatami/header.html index db3ba546e..3cdc093cb 100644 --- a/templates/web/fiksgatami/header.html +++ b/templates/web/fiksgatami/header.html @@ -24,7 +24,7 @@ - [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js', site_title = 'FiksGataMi' %] + [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js' %] [% extra_js %] [% TRY %][% PROCESS 'header_extra.html' %][% CATCH file %][% END %] diff --git a/templates/web/fiksgatami/site-name.html b/templates/web/fiksgatami/site-name.html new file mode 100644 index 000000000..c6f8b5562 --- /dev/null +++ b/templates/web/fiksgatami/site-name.html @@ -0,0 +1 @@ +FiksGataMi diff --git a/templates/web/fixamingata/site-name.html b/templates/web/fixamingata/site-name.html new file mode 100644 index 000000000..022606e78 --- /dev/null +++ b/templates/web/fixamingata/site-name.html @@ -0,0 +1 @@ +FixaMinGata diff --git a/templates/web/fixmindelo/site-name.html b/templates/web/fixmindelo/site-name.html new file mode 100644 index 000000000..da8217a7b --- /dev/null +++ b/templates/web/fixmindelo/site-name.html @@ -0,0 +1 @@ +FixMindelo diff --git a/templates/web/fixmybarangay/header.html b/templates/web/fixmybarangay/header.html index 06a8b71a1..18388649b 100644 --- a/templates/web/fixmybarangay/header.html +++ b/templates/web/fixmybarangay/header.html @@ -22,7 +22,7 @@ - [% INCLUDE 'common_header_tags.html', site_title = 'FixMyBarangay', js_override = '/cobrands/fixmystreet/fixmystreet.js' %] + [% INCLUDE 'common_header_tags.html' js_override = '/cobrands/fixmystreet/fixmystreet.js' %] [% extra_js %] [% allow_creation = !c.cobrand.only_authed_can_create || (c.user && c.user.from_body); %] diff --git a/templates/web/fixmybarangay/site-name.html b/templates/web/fixmybarangay/site-name.html new file mode 100644 index 000000000..075d881b5 --- /dev/null +++ b/templates/web/fixmybarangay/site-name.html @@ -0,0 +1 @@ +FixMyBarangay diff --git a/templates/web/fixmystreet/header.html b/templates/web/fixmystreet/header.html index 3d69fbac6..a1c0ba38a 100644 --- a/templates/web/fixmystreet/header.html +++ b/templates/web/fixmystreet/header.html @@ -24,7 +24,7 @@ - [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js', site_title = c.cobrand.site_title %] + [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js' %] [% extra_js %] [% IF c.req.uri.host == 'osm.fixmystreet.com' %] diff --git a/templates/web/fixmystreet/header_logo.html b/templates/web/fixmystreet/header_logo.html index e5e4aae60..6e4ad9e21 100644 --- a/templates/web/fixmystreet/header_logo.html +++ b/templates/web/fixmystreet/header_logo.html @@ -1 +1 @@ - + diff --git a/templates/web/fixmystreet/header_opengraph.html b/templates/web/fixmystreet/header_opengraph.html index 45e7c246c..d0cd31261 100644 --- a/templates/web/fixmystreet/header_opengraph.html +++ b/templates/web/fixmystreet/header_opengraph.html @@ -1,6 +1,6 @@ - + [% IF c.req.uri.path == '/' %][% END %] diff --git a/templates/web/harrogate/header.html b/templates/web/harrogate/header.html index 3d69fbac6..a1c0ba38a 100644 --- a/templates/web/harrogate/header.html +++ b/templates/web/harrogate/header.html @@ -24,7 +24,7 @@ - [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js', site_title = c.cobrand.site_title %] + [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js' %] [% extra_js %] [% IF c.req.uri.host == 'osm.fixmystreet.com' %] diff --git a/templates/web/harrogate/static/privacy.html b/templates/web/harrogate/static/privacy.html index 0107d0873..7f0f090e4 100755 --- a/templates/web/harrogate/static/privacy.html +++ b/templates/web/harrogate/static/privacy.html @@ -7,7 +7,7 @@ diff --git a/templates/web/hart/header.html b/templates/web/hart/header.html index 882d382dd..dcc202b5a 100644 --- a/templates/web/hart/header.html +++ b/templates/web/hart/header.html @@ -11,15 +11,7 @@ - - - - [% IF c.req.uri.path == '/' %][% END %] - - - - - + [% INCLUDE 'header_opengraph.html' %] [% SET start = c.config.ADMIN_BASE_URL IF admin %] @@ -33,7 +25,7 @@ - [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js', site_title = c.cobrand.site_title %] + [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js' %] [% extra_js %] - [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js', site_title = 'FixMyStreet' %] + [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js' %] [% extra_js %] [% INCLUDE 'tracking_code.html' %] diff --git a/templates/web/seesomething/site-name.html b/templates/web/seesomething/site-name.html new file mode 100644 index 000000000..7a3ceec89 --- /dev/null +++ b/templates/web/seesomething/site-name.html @@ -0,0 +1 @@ +See Something, Say Something diff --git a/templates/web/stevenage/header.html b/templates/web/stevenage/header.html index f53e12c6c..dbcc37866 100644 --- a/templates/web/stevenage/header.html +++ b/templates/web/stevenage/header.html @@ -20,7 +20,7 @@ - [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js', site_title = 'Stevenage: FixMyStreet' %] + [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js' %] [% extra_js %] diff --git a/templates/web/stevenage/site-name.html b/templates/web/stevenage/site-name.html new file mode 100644 index 000000000..49b12501a --- /dev/null +++ b/templates/web/stevenage/site-name.html @@ -0,0 +1 @@ +Stevenage: FixMyStreet diff --git a/templates/web/warwickshire/header.html b/templates/web/warwickshire/header.html index 00cb76799..1d52b5546 100644 --- a/templates/web/warwickshire/header.html +++ b/templates/web/warwickshire/header.html @@ -29,7 +29,7 @@ - [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js', site_title = c.cobrand.site_title %] + [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js' %] [% extra_js %] diff --git a/templates/web/zerotb/site-name.html b/templates/web/zerotb/site-name.html new file mode 100644 index 000000000..b2c01ff85 --- /dev/null +++ b/templates/web/zerotb/site-name.html @@ -0,0 +1 @@ +ZeroTB diff --git a/templates/web/zurich/header.html b/templates/web/zurich/header.html index 891c6f1d3..ae1b47712 100644 --- a/templates/web/zurich/header.html +++ b/templates/web/zurich/header.html @@ -24,7 +24,7 @@ - [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js', site_title = 'Züri wie neu' %] + [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js' %] [% extra_js %] diff --git a/templates/web/zurich/site-name.html b/templates/web/zurich/site-name.html new file mode 100644 index 000000000..d8932b521 --- /dev/null +++ b/templates/web/zurich/site-name.html @@ -0,0 +1 @@ +Züri wie neu -- cgit v1.2.3