aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/App.pm2
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm3
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm5
-rw-r--r--perllib/FixMyStreet/App/View/Web.pm6
-rw-r--r--t/app/controller/report_new.t11
-rw-r--r--templates/email/default/problem-confirm-not-sending.txt32
-rw-r--r--templates/web/arreglamibarrio/faq/faq-es.html26
-rw-r--r--templates/web/barnet/footer.html4
-rw-r--r--templates/web/base/admin/config_page.html2
-rw-r--r--templates/web/base/admin/header.html2
-rw-r--r--templates/web/base/admin/index.html2
-rw-r--r--templates/web/base/alert/_list.html43
-rw-r--r--templates/web/base/alert/index.html12
-rwxr-xr-xtemplates/web/base/around/display_location.html2
-rw-r--r--templates/web/base/auth/general.html6
-rw-r--r--templates/web/base/common_header_tags.html2
-rw-r--r--templates/web/base/contact/blurb.html2
-rwxr-xr-xtemplates/web/base/faq/faq-en-gb.html32
-rw-r--r--templates/web/base/footer.html2
-rw-r--r--templates/web/base/open311/index.html6
-rw-r--r--templates/web/base/report/display.html2
-rw-r--r--templates/web/base/report/new/fill_in_details_form.html3
-rw-r--r--templates/web/base/report/update-form.html3
-rwxr-xr-xtemplates/web/base/reports/body.html2
-rwxr-xr-xtemplates/web/base/static/privacy.html8
-rw-r--r--templates/web/bromley/footer.html37
-rw-r--r--templates/web/bromley/header_logo.html4
-rw-r--r--templates/web/fiksgatami/footer.html4
-rw-r--r--templates/web/fiksgatami/nn/footer.html4
-rw-r--r--templates/web/fixamingata/footer.html2
-rw-r--r--templates/web/fixmindelo/footer.html4
-rw-r--r--templates/web/fixmybarangay/footer.html8
-rw-r--r--templates/web/fixmystreet/alert/_list.html93
-rw-r--r--templates/web/fixmystreet/contact/blurb.html2
-rw-r--r--templates/web/fixmystreet/contact/index.html6
-rw-r--r--templates/web/fixmystreet/footer.html6
-rw-r--r--templates/web/fixmystreet/front/footer-marketing.html2
-rw-r--r--templates/web/fixmystreet/header_logo.html2
-rw-r--r--templates/web/fixmystreet/header_opengraph.html4
-rw-r--r--templates/web/fixmystreet/report/display.html2
-rw-r--r--templates/web/fixmystreet/report/new/form_user_loggedout.html2
-rw-r--r--templates/web/fixmystreet/report/update-form.html2
-rw-r--r--templates/web/greenwich/footer.html9
-rw-r--r--templates/web/greenwich/header_logo.html2
-rw-r--r--templates/web/harrogate/footer.html15
-rwxr-xr-xtemplates/web/harrogate/static/privacy.html2
-rw-r--r--templates/web/oxfordshire/footer.html4
-rw-r--r--templates/web/seesomething/footer.html2
-rw-r--r--templates/web/stevenage/footer.html2
-rw-r--r--templates/web/trinidadtobago/footer.html4
-rw-r--r--templates/web/trinidadtobago/header_logo.html2
-rw-r--r--templates/web/warwickshire/header.html2
-rw-r--r--templates/web/zerotb/footer.html2
-rw-r--r--templates/web/zurich/footer.html2
-rw-r--r--web/cobrands/bromley/base.scss5
-rw-r--r--web/cobrands/bromley/layout.scss11
-rw-r--r--web/cobrands/fixmindelo/base.scss2
-rw-r--r--web/cobrands/fixmindelo/layout.scss14
-rw-r--r--web/cobrands/fixmybarangay/base.scss2
-rw-r--r--web/cobrands/fixmybarangay/layout.scss32
-rw-r--r--web/cobrands/fixmystreet.com/layout.scss30
-rw-r--r--web/cobrands/greenwich/base.scss5
-rw-r--r--web/cobrands/greenwich/layout.scss25
-rw-r--r--web/cobrands/harrogate/base.scss26
-rw-r--r--web/cobrands/harrogate/layout.scss37
-rw-r--r--web/cobrands/oxfordshire/base.scss2
-rw-r--r--web/cobrands/sass/_base.scss70
-rw-r--r--web/cobrands/sass/_layout.scss149
-rw-r--r--web/cobrands/stevenage/layout.scss54
-rw-r--r--web/cobrands/zerotb/layout.scss34
-rw-r--r--web/cobrands/zurich/layout.scss7
-rw-r--r--web/down.default.html2
72 files changed, 405 insertions, 554 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm
index 8883bb91f..5e0bbaf93 100644
--- a/perllib/FixMyStreet/App.pm
+++ b/perllib/FixMyStreet/App.pm
@@ -191,6 +191,8 @@ sub setup_request {
$c->log->debug( sprintf "Set lang to '%s' and cobrand to '%s'",
$set_lang, $cobrand->moniker );
+ $c->stash->{site_name} = Utils::trim_text($c->render_fragment('site-name.html'));
+
$c->model('DB::Problem')->set_restriction( $cobrand->site_key() );
Memcached::set_namespace( FixMyStreet->config('FMS_DB_NAME') . ":" );
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm
index 315a5436c..279994e47 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -112,10 +112,9 @@ 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.'), $site_name) ] #
+ [ sprintf(_('That report cannot be viewed on %s.'), $c->stash->{site_name}) ]
);
}
}
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index de9f33105..d5b84815b 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -1149,6 +1149,9 @@ sub redirect_or_confirm_creation : Private {
return 1;
}
+ my $template = 'problem-confirm.txt';
+ $template = 'problem-confirm-not-sending.txt' unless $report->bodies_str;
+
# otherwise create a confirm token and email it to them.
my $data = $c->stash->{token_data} || {};
my $token = $c->model("DB::Token")->create( {
@@ -1159,7 +1162,7 @@ sub redirect_or_confirm_creation : Private {
}
} );
$c->stash->{token_url} = $c->uri_for_email( '/P', $token->token );
- $c->send_email( 'problem-confirm.txt', {
+ $c->send_email( $template, {
to => [ $report->name ? [ $report->user->email, $report->name ] : $report->user->email ],
} );
diff --git a/perllib/FixMyStreet/App/View/Web.pm b/perllib/FixMyStreet/App/View/Web.pm
index da549ece8..9cc571efc 100644
--- a/perllib/FixMyStreet/App/View/Web.pm
+++ b/perllib/FixMyStreet/App/View/Web.pm
@@ -40,15 +40,15 @@ TT View for FixMyStreet::App.
=head2 loc
- [% loc('Some text to localize') %]
+ [% loc('Some text to localize', 'Optional comment for translator') %]
Passes the text to the localisation engine for translations.
=cut
sub loc {
- my ( $self, $c, @args ) = @_;
- return _(@args);
+ my ( $self, $c, $msgid ) = @_;
+ return _($msgid);
}
=head2 nget
diff --git a/t/app/controller/report_new.t b/t/app/controller/report_new.t
index bd0001be8..3c05adfbd 100644
--- a/t/app/controller/report_new.t
+++ b/t/app/controller/report_new.t
@@ -1475,7 +1475,7 @@ subtest "unresponsive body handling works" => sub {
ok $mech->content_like( qr{Edinburgh.*accept reports.*/unresponsive\?body=$body_id} );
my $test_email = 'test-2@example.com';
- my $user = $mech->log_in_ok($test_email);
+ $mech->log_out_ok;
$mech->get_ok('/around');
$mech->submit_form_ok( { with_fields => { pc => 'EH1 1BB', } }, "submit location" );
$mech->follow_link_ok( { text_regex => qr/skip this step/i, }, "follow 'skip this step' link" );
@@ -1486,6 +1486,7 @@ subtest "unresponsive body handling works" => sub {
detail => 'Test report details.',
photo => '',
name => 'Joe Bloggs',
+ email => $test_email,
may_show_name => '1',
phone => '07903 123 456',
category => 'Trees',
@@ -1494,10 +1495,17 @@ subtest "unresponsive body handling works" => sub {
"submit good details"
);
+ my $user = FixMyStreet::App->model('DB::User')->find( { email => $test_email } );
+ ok $user, "test user does exist";
+
my $report = $user->problems->first;
ok $report, "Found the report";
is $report->bodies_str, undef, "Report not going anywhere";
+ my $email = $mech->get_email;
+ ok $email, "got an email";
+ like $email->body, qr/despite not being sent/i, "correct email sent";
+
$user->problems->delete;
$contact1->body->update( { send_method => $old_send } );
@@ -1517,6 +1525,7 @@ subtest "unresponsive body handling works" => sub {
detail => 'Test report details.',
photo => '',
name => 'Joe Bloggs',
+ email => $test_email,
may_show_name => '1',
phone => '07903 123 456',
category => 'Trees',
diff --git a/templates/email/default/problem-confirm-not-sending.txt b/templates/email/default/problem-confirm-not-sending.txt
new file mode 100644
index 000000000..2443805bb
--- /dev/null
+++ b/templates/email/default/problem-confirm-not-sending.txt
@@ -0,0 +1,32 @@
+Subject: Confirm your report on [% INCLUDE 'site-name.txt' | trim %]
+
+Hello [% report.name %],
+
+Please click on the link below to confirm that you want your report to appear
+on [% INCLUDE 'site-name.txt' | trim %], despite not being sent to the
+council:
+
+[% token_url %]
+
+If your email program does not let you click on this link, copy and paste it
+into your web browser and press return.
+
+Your problem had the title:
+
+[% report.title %]
+
+And details:
+
+[% report.detail %]
+
+If you no longer wish your report to be displayed on the site, please take no
+further action.
+
+Thank you for supporting [% INCLUDE 'site-name.txt' | trim %].
+
+
+
+[% INCLUDE 'signature.txt' %]
+
+This email was sent automatically, from an unmonitored email account - so
+please do not reply to it.
diff --git a/templates/web/arreglamibarrio/faq/faq-es.html b/templates/web/arreglamibarrio/faq/faq-es.html
index 3d5397380..b9ab9842e 100644
--- a/templates/web/arreglamibarrio/faq/faq-es.html
+++ b/templates/web/arreglamibarrio/faq/faq-es.html
@@ -4,18 +4,18 @@
<ul class="plain-list">
<li><strong>Preguntas frecuentes</strong></li>
<li><a href="/privacy">Privacidad y cookies</a></li>
-<li><a href="/contact">Contacto [% PROCESS 'site-name.html' -%]</a></li>
+<li><a href="/contact">Contacto [% site_name %]</a></li>
</ul>
</aside>
</div>
<h1><a name="faq"></a>Preguntas frecuentes</h1>
<dl>
<dt>&iquest;Qu&eacute; es este sitio?</dt>
-<dd>[% PROCESS 'site-name.html' -%] es un sitio para ayudar a las personas a informar a su Administraci&oacute;n local sobre aver&iacute;as o mal estado de nuestro espacio urgano, simplemente localizandolo en un mapa.</dd>
-<dt>&iquest;Como puedo ponerme en contacto con [% PROCESS 'site-name.html' -%]?</dt>
+<dd>[% site_name %] es un sitio para ayudar a las personas a informar a su Administraci&oacute;n local sobre aver&iacute;as o mal estado de nuestro espacio urgano, simplemente localizandolo en un mapa.</dd>
+<dt>&iquest;Como puedo ponerme en contacto con [% site_name %]?</dt>
<dd>Esta es nuestra <a href="/contact">pagina de contacto</a>.</dd>
-<dt>&iquest;Que tipo de problemas puedo notificar con [% PROCESS 'site-name.html' -%]?</dt>
-<dd>Esto depende de la finalidad de [% PROCESS 'site-name.html' -%];
+<dt>&iquest;Que tipo de problemas puedo notificar con [% site_name %]?</dt>
+<dd>Esto depende de la finalidad de [% site_name %];
en el Reino Unido, FixMyStreet es principalmente para informar cosas que est&aacute;n rotas o sucias o da&ntilde;adas o desechadas y hay que arreglar, de limpieza o de compensaci&oacute;n, tales como:
<dl>
<dt>- veh&iacute;culos abandonados<br>
@@ -29,9 +29,9 @@
<dd></dd>
</dl>
</dd>
-<dt>&iquest;Para que NO es [% PROCESS 'site-name.html' -%] ?</dt>
+<dt>&iquest;Para que NO es [% site_name %] ?</dt>
<dd>&nbsp;</dd>
-<dd>[% PROCESS 'site-name.html' -%] no debe usarse para ponerse en contacto con el Ayuntamiento para todas las incidencias - por favor utilice este sitio s&oacute;lo para problemas como los anteriores. A menudo los informes de problemas siguen una burocracia y utilizar este sitio para asuntos urgentes pueden retrasarse en llegar al departamento correcto. Usted tendr&aacute; que ponerse en contacto con su autoridad directamente ante problemas como:
+<dd>[% site_name %] no debe usarse para ponerse en contacto con el Ayuntamiento para todas las incidencias - por favor utilice este sitio s&oacute;lo para problemas como los anteriores. A menudo los informes de problemas siguen una burocracia y utilizar este sitio para asuntos urgentes pueden retrasarse en llegar al departamento correcto. Usted tendr&aacute; que ponerse en contacto con su autoridad directamente ante problemas como:
<ul>
<li>Comportamientos anti-sociales.
<li>Cualquier problema de urgencia o emergencias
@@ -51,25 +51,25 @@
<dd>Seg&uacute;n los informes, se env&iacute;a un correo electr&oacute;nico al departamento pertinente. A partir de ese momento puede resolver el problema como normalmente lo har&iacute;a. Alternativamente, se puede discutir el problema en el sitio web con los dem&aacute;s, y luego juntos requerir al Ayuntamiento que lo arregle, o fijarlo directamente en la web.</dd>
<dt>&iquest;Es gr&aacute;tis? </dt>
<dd>Efectivamente el sitio es de uso gratuito. La plataforma arreglamibarrio.org es mantenido por la Asociaci&oacute;n Observatorio Ciudadano Municipal de Alcantarilla, asociaci&oacute;n sin &aacute;nimo de lucro registrada, as&iacute; que si usted desea hacer una contribuci&oacute;n puede hacerla.</dd>
-<dt>&iquest;Puedo usar [% PROCESS 'site-name.html' -%] con mi m&oacute;vil?</dt>
+<dt>&iquest;Puedo usar [% site_name %] con mi m&oacute;vil?</dt>
<dd>
-<p> [% PROCESS 'site-name.html' -%] la web funciona en su tel&eacute;fono m&oacute;vil, tiene un dise&ntilde;o &quot;responsive&quot; que se adapta al tama&ntilde;o de su pantalla de forma autom&aacute;tica.</p>
+<p> [% site_name %] la web funciona en su tel&eacute;fono m&oacute;vil, tiene un dise&ntilde;o &quot;responsive&quot; que se adapta al tama&ntilde;o de su pantalla de forma autom&aacute;tica.</p>
</dd>
</dl>
<h2><a name="practical"></a>Cuestiones pr&aacute;cticas </h2>
<dl>
<dt>Pertenezco a un Ayuntamiento, &iquest;d&oacute;nde env&iacute;an sus incidencias?</dt>
<dd>Usted puede crear una incidencia de prueba o contactarnos para saber d&oacute;nde van los informes. Puede contactar con nosotros para actualizar la direcci&oacute;n o direcciones que utilizamos.</dd>
-<dt>Pertenezco a un Ayuntamiento, &iquest;podr&iacute;amos tener [% PROCESS 'site-name.html' -%]
+<dt>Pertenezco a un Ayuntamiento, &iquest;podr&iacute;amos tener [% site_name %]
en nuestra web?</dt>
<dd>Es posible, pongase en contacto con nosotros y lo estudiaremos </dd>
<dt>&iquest;Eliminan contenido ilegal u ofensivo? </dt>
-<dd>[% PROCESS 'site-name.html' -%] no es responsable de el contenido o exactitud del material presentado por sus usuarios. Nos reservamos el derecho de editar o eliminar cualquier problema o actualizaciones que consideremos inadecuadas.</dd>
+<dd>[% site_name %] no es responsable de el contenido o exactitud del material presentado por sus usuarios. Nos reservamos el derecho de editar o eliminar cualquier problema o actualizaciones que consideremos inadecuadas.</dd>
<dt>&iquest;Porque no puedo alejar m&aacute;s el zoom del mapa?</dt>
-<dd>Intentamos mantener a [% PROCESS 'site-name.html' -%] centrado en la localidad, por lo que restringimos el movimiento a las zonas cubiertas. El mapa le permitir&aacute; ver todos los informes que ha realizado, est&eacute;n donde est&eacute;n. Si usted es del Ayuntamiento, el correo electr&oacute;nico de la incidencia tambi&eacute;n podr&iacute;a contener la ruta m&aacute;s cercana al pin en el mapa.</dd>
+<dd>Intentamos mantener a [% site_name %] centrado en la localidad, por lo que restringimos el movimiento a las zonas cubiertas. El mapa le permitir&aacute; ver todos los informes que ha realizado, est&eacute;n donde est&eacute;n. Si usted es del Ayuntamiento, el correo electr&oacute;nico de la incidencia tambi&eacute;n podr&iacute;a contener la ruta m&aacute;s cercana al pin en el mapa.</dd>
<h2><a name="organisation"></a>Preguntas a la organizaci&oacute;n </h2>
<dl>
-<dt>&iquest;Qui&eacute;n hizo [% PROCESS 'site-name.html' -%]?</dt>
+<dt>&iquest;Qui&eacute;n hizo [% site_name %]?</dt>
<dd>La plataforma fue creada por mysociety.
<dt>&iquest;Necesita ayuda con el proyecto? </dt>
<dd>S&iacute;, toda ayuda, t&eacute;cnica o no t&eacute;cnica ser&aacute; bienvenida. Por favor, consulte nuestra p&aacute;gina de participaci&oacute;n.</dd>
diff --git a/templates/web/barnet/footer.html b/templates/web/barnet/footer.html
index 60d834d5f..e5f8739b4 100644
--- a/templates/web/barnet/footer.html
+++ b/templates/web/barnet/footer.html
@@ -8,10 +8,10 @@
<div class="nav-wrapper">
<div class="nav-wrapper-2">
<div id="main-nav" role="navigation">
- <ul id="mysoc-menu">
+ <ul class="nav-menu nav-menu--mysoc">
<li><a href="https://www.fixmystreet.com/council">Powered by <img src="/cobrands/barnet/img/fms-logo.png" style="height:20px;"></a></li>
</ul>
- <ul id="main-menu">
+ <ul class="nav-menu nav-menu--main">
<li><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END %] class="report-a-problem-btn"
>[% loc("Report a problem") %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[%
%]<li><[% IF c.req.uri.path == '/my' %]span[% ELSE %]a href="/my"[% END
diff --git a/templates/web/base/admin/config_page.html b/templates/web/base/admin/config_page.html
index 7c9b5e317..71c524fb3 100644
--- a/templates/web/base/admin/config_page.html
+++ b/templates/web/base/admin/config_page.html
@@ -42,7 +42,7 @@ running version <strong>[% git_version || 'unknown' %]</strong>.
[% INCLUDE subsection heading="Display" %]
<tr>
<td>Site title</td>
- <td colspan=2>[% PROCESS 'site-name.html' -%]</td>
+ <td colspan=2>[% site_name %]</td>
</tr>
[% allowed_conf = FOR k IN c.config.ALLOWED_COBRANDS %]
[% IF k.keys %][% k.items.join(':') %][% ELSE %][% k %][% END %]
diff --git a/templates/web/base/admin/header.html b/templates/web/base/admin/header.html
index 6282bf383..145bb986d 100644
--- a/templates/web/base/admin/header.html
+++ b/templates/web/base/admin/header.html
@@ -7,7 +7,7 @@ dd { margin-left: 8em; }
select { width: auto; }
</style>
- <p><strong>[% loc('FixMyStreet admin:') %]</strong>
+ <p><strong>[% tprintf(loc('%s admin:', "%s here is the site name"), site_name) %]</strong>
[%- FOREACH link IN allowed_links %]
<a href="[% c.uri_for( link ) %]">[% allowed_pages.$link.0 %]</a>
[% IF NOT loop.last %]|[% END %]
diff --git a/templates/web/base/admin/index.html b/templates/web/base/admin/index.html
index a68df01d9..8c49a5685 100644
--- a/templates/web/base/admin/index.html
+++ b/templates/web/base/admin/index.html
@@ -2,7 +2,7 @@
[% PROCESS 'admin/report_blocks.html' %]
<div class="fms-admin-info fms-admin-floated">
-This is the administration interface for [% PROCESS 'site-name.html' -%]. If you
+This is the administration interface for [% site_name %]. If you
need any help or guidance, there is <a href="http://fixmystreet.org/">plenty of
online documentation</a>. The FixMyStreet Platform is
<a href="https://github.com/mysociety/fixmystreet">actively supported</a> by
diff --git a/templates/web/base/alert/_list.html b/templates/web/base/alert/_list.html
index 2ffcfae39..395948248 100644
--- a/templates/web/base/alert/_list.html
+++ b/templates/web/base/alert/_list.html
@@ -1,11 +1,13 @@
<input type="hidden" name="type" value="local">
<input type="hidden" name="pc" value="[% pc | html %]">
+ <input type="hidden" name="latitude" value="[% latitude | html %]">
+ <input type="hidden" name="longitude" value="[% longitude | html %]">
<p>
[% IF pretty_pc %]
[% tprintf( loc('Here are the types of local problem alerts for &lsquo;%s&rsquo;.'), pretty_pc ) %]
[% END %]
- [% loc('Select which type of alert you\'d like and click the button for an RSS feed, or enter your email address to subscribe to an email alert.') %]
+ [% loc('Select which type of alert you’d like and click the button for an RSS feed, or enter your email address to subscribe to an email alert.') %]
</p>
[% INCLUDE 'errors.html' %]
@@ -16,14 +18,15 @@
<p id="rss_local">
<input type="radio" name="feed" id="[% rss_feed_id %]" value="[% rss_feed_id %]"[% IF rss_feed_id == selected_feed || selected_feed == '' %] checked[% END %]>
- <label for="[% rss_feed_id %]">[% tprintf( loc('Problems within %.1fkm of this location'), population_radius ) %]</label>
- [% loc('(a default distance which covers roughly 200,000 people)') %] <a href='[% rss_feed_uri %]'>
- <img src='/i/feed.png' width='16' height='16' title='[% loc('RSS feed of nearby problems') %]' alt='[% loc('RSS feed') %]' border='0'></a>
+ <label class="inline" for="[% rss_feed_id %]">[% tprintf( loc('Problems within %.1fkm of this location'), population_radius ) %]</label>
+ <a href='[% rss_feed_uri %]'><img src='/i/feed.png' width='16' height='16' title='[% loc('RSS feed of nearby problems') %]' alt='[% loc('RSS feed') %]' border='0'></a>
+ <br />
+ [% loc('(a default distance which covers roughly 200,000 people)') %]
</p>
<p id="rss_local_alt">
- [% loc('(alternatively the RSS feed can be customised, within') %]
- <a href="[% rss_feed_2k %]">2km</a> / <a href="[% rss_feed_5k %]">5km</a> / <a href="[% rss_feed_10k %]">10km</a> / <a href="[% rss_feed_20k %]">20km</a>)
+ [% SET distance_options = '<a href="' _ rss_feed_2k _ ' ">2km</a> / <a href="' _ rss_feed_5k _ ' ">5km</a> / <a href="' _ rss_feed_10k _ '">10km</a> / <a href="' _ rss_feed_20k _ '">20km</a>' %]
+ [% tprintf(loc('(alternatively the RSS feed can be customised, within %s)', "%s is a list of distance links, e.g. [2km] / [5km] / [10km] / [20km]"), distance_options) %]
</p>
<p>
@@ -35,21 +38,20 @@
</p>
[% IF reported_to_options %]
- <div id="rss_list">
<p><strong>
[% loc('Problems within the boundary of:') %]
</strong></p>
<ul class="plain-list">
[% ELSE %]
- <div><ul id="rss_feed">
+ <ul id="rss_feed" class="plain-list">
[% END %]
[% FOREACH option IN options %]
<li[% IF ! (loop.count % 2) %] class="a"[% END %]>
<input type="radio" name="feed" id="[% option.id %]" value="[% option.id %]"[% IF option.id == selected_feed %] checked[% END %]>
- <label class="inline" for="[% option.id %]">[% option.text %]</label>
<a href="[% option.uri %]"><img src="/i/feed.png" width="16" height="16"
title="[% option.rss_text %]" alt="RSS feed" border="0"></a>
+ <label class="inline" for="[% option.id %]">[% option.text %]</label>
</li>
[% END %]
</ul>
@@ -61,40 +63,31 @@ title="[% option.rss_text %]" alt="RSS feed" border="0"></a>
[% FOREACH option IN reported_to_options %]
<li[% IF ! (loop.count % 2) %] class="a"[% END %]>
<input type="radio" name="feed" id="[% option.id %]" value="[% option.id %]"[% IF option.id == selected_feed %] checked[% END %]>
- <label class="inline" for="[% option.id %]">[% option.text %]</label>
<a href="[% option.uri %]"><img src="/i/feed.png" width="16" height="16"
title="[% option.rss_text %]" alt="RSS feed" border="0"></a>
+ <label class="inline" for="[% option.id %]">[% option.text %]</label>
</li>
[% END %]
</ul>
<p><small>
- [% loc( 'FixMyStreet sends different categories of problem
+ [% tprintf(loc('%s sends different categories of problem
to the appropriate council, so problems within the boundary of a particular council
might not match the problems sent to that council. For example, a graffiti report
will be sent to the district council, so will appear in both of the district
council&rsquo;s alerts, but will only appear in the "Within the boundary" alert
-for the county council.' ) %]
+for the county council.', "%s is the site name"), site_name) %]
</small></p>
-</div>
-<div id="rss_buttons">
[% END %]
- <p>
- <input type="submit" name="rss" value="[% loc('Give me an RSS feed') %]">
- <p>
+ <input id="alert_rss_button" class="green-btn" type="submit" name="rss" value="[% loc('Give me an RSS feed') %]">
<p id="alert_or">
[% loc('or') %]
</p>
[% UNLESS c.user_exists %]
- <p>
- [% loc('Your email:') %] <input type="text" id="rznvy" name="rznvy" value="[% rznvy | html %]" size="30">
- </p>
+ <label for="rznvy">[% loc('Your email') %]</label>
+ <input type="text" id="rznvy" name="rznvy" value="[% rznvy | html %]">
[% END %]
-
- <p>
- <input type="submit" name="alert" value="[% loc('Subscribe me to an email alert') %]">
- </p>
- </div> <!-- ???? -->
+ <input id="alert_email_button" style="margin-top:1em;" class="green-btn" type="submit" name="alert" value="[% loc('Subscribe me to an email alert') %]">
diff --git a/templates/web/base/alert/index.html b/templates/web/base/alert/index.html
index d0aab1a86..2b12182df 100644
--- a/templates/web/base/alert/index.html
+++ b/templates/web/base/alert/index.html
@@ -4,13 +4,13 @@
<p>
[% IF c.cobrand.is_council %]
-FixMyStreet has a variety of RSS feeds and email alerts for local problems, including
-alerts for all problems within a particular ward, or all problems
-within a certain distance of a particular location.
+[% tprintf(loc('%s has a variety of RSS feeds and email alerts for local
+problems, including alerts for all problems within a particular ward, or all
+problems within a certain distance of a particular location.', "%s is the site name"), site_name) %]
[% ELSE %]
-[% loc('FixMyStreet has a variety of RSS feeds and email alerts for local problems, including
+[% tprintf(loc('%s has a variety of RSS feeds and email alerts for local problems, including
alerts for all problems within a particular ward or council, or all problems
-within a certain distance of a particular location.') %]
+within a certain distance of a particular location.', "%s is the site name"), site_name) %]
[% END %]
</p>
@@ -22,7 +22,7 @@ within a certain distance of a particular location.') %]
<p>
[% IF c.cobrand.is_council %]
-To find out what local alerts we have for you, please enter your [% c.cobrand.council_area %] postcode or street name and area:
+[% tprintf(loc('To find out what local alerts we have for you, please enter your %s postcode or street name and area:'), c.cobrand.council_area) %]
[% ELSE %]
[% loc('To find out what local alerts we have for you, please enter your postcode or street name and area' ) %]
[% END %]
diff --git a/templates/web/base/around/display_location.html b/templates/web/base/around/display_location.html
index 3f4ec8881..d38ae6754 100755
--- a/templates/web/base/around/display_location.html
+++ b/templates/web/base/around/display_location.html
@@ -30,7 +30,7 @@
PROCESS "maps/${map.type}.html" around_page = 1;
SET bodyclass = 'mappage';
- SET rss = [ loc('Recent local problems, FixMyStreet'), rss_url ] IF c.cobrand.moniker != 'emptyhomes';
+ SET rss = [ tprintf(loc('Recent local problems, %s', "%s is the site name"), site_name), rss_url ] IF c.cobrand.moniker != 'emptyhomes';
INCLUDE 'header.html',
title => loc('Viewing a location')
robots => 'noindex,nofollow';
diff --git a/templates/web/base/auth/general.html b/templates/web/base/auth/general.html
index 4c9a59350..7efef4f6b 100644
--- a/templates/web/base/auth/general.html
+++ b/templates/web/base/auth/general.html
@@ -28,11 +28,7 @@
<input type="email" class="required email" id="email" name="email" value="[% email | html %]" placeholder="[% loc('Your email address') %]">
<div id="form_sign_in">
- [% IF c.cobrand.moniker == 'fixmybarangay' %]
- <h3>[% loc("Do you have a FixMyBarangay password?") %]</h3>
- [% ELSE %]
- <h3>[% loc("Do you have a FixMyStreet password?") %]</h3>
- [% END %]
+ <h3>[% tprintf(loc("Do you have a %s password?", "%s is the site name"), site_name) %]</h3>
<div id="form_sign_in_yes" class="form-box">
<h5>[% loc('<strong>Yes</strong> I have a password') %]</h5>
diff --git a/templates/web/base/common_header_tags.html b/templates/web/base/common_header_tags.html
index 16098b7f5..0ad3ffb5f 100644
--- a/templates/web/base/common_header_tags.html
+++ b/templates/web/base/common_header_tags.html
@@ -42,5 +42,5 @@
<title>
[% "$title :: " | html IF title %]
- [% PROCESS 'site-name.html' -%]
+ [% site_name -%]
</title>
diff --git a/templates/web/base/contact/blurb.html b/templates/web/base/contact/blurb.html
index 22c9a3cef..463813449 100644
--- a/templates/web/base/contact/blurb.html
+++ b/templates/web/base/contact/blurb.html
@@ -1,6 +1,6 @@
<p>
[% loc('Please do <strong>not</strong> report problems through this form; messages go to
-the team behind FixMyStreet, not a council. To report a problem,
+the team behind this site, not a council. To report a problem,
please <a href="/">go to the front page</a> and follow the instructions.') %]
</p>
diff --git a/templates/web/base/faq/faq-en-gb.html b/templates/web/base/faq/faq-en-gb.html
index e1e07a8d7..b60f1102a 100755
--- a/templates/web/base/faq/faq-en-gb.html
+++ b/templates/web/base/faq/faq-en-gb.html
@@ -3,27 +3,27 @@
<div class="sticky-sidebar">
<aside>
<ul class="plain-list">
- <li><strong>Frequently Asked Questions</strong></li>
- <li><a href="/privacy">Privacy and cookies</a></li>
- <li><a href="/contact">Contact [% PROCESS 'site-name.html' -%]</a></li>
+ <li><strong>[% loc('Frequently Asked Questions') %]</strong></li>
+ <li><a href="/privacy">[% loc('Privacy and cookies') %]</a></li>
+ <li><a href="/contact">[% tprintf(loc("Contact %s", "%s is the site name"), site_name) %]</a></li>
</ul>
</aside>
</div>
-<h1><a name="faq"></a>Frequently Asked Questions</h1>
+<h1><a name="faq"></a>[% loc('Frequently Asked Questions') %]</h1>
<dl>
<dt>What is this site?</dt>
- <dd>[% PROCESS 'site-name.html' -%] is a site to help people report to their
+ <dd>[% site_name %] is a site to help people report to their
local authority, view, or discuss local issues they&rsquo;ve found, by
simply locating them on a map.</dd>
- <dt>How do I get in touch with [% PROCESS 'site-name.html' -%]?</dt>
+ <dt>How do I get in touch with [% site_name %]?</dt>
<dd>Here&rsquo;s our <a href="/contact">contact page</a>.</dd>
- <dt>What sort of problems should I report with [% PROCESS 'site-name.html' -%]?</dt>
- <dd>This depends upon the precise purpose of [% PROCESS 'site-name.html' -%];
+ <dt>What sort of problems should I report with [% site_name %]?</dt>
+ <dd>This depends upon the precise purpose of [% site_name %];
in the UK, FixMyStreet is primarily for reporting things which are
<strong>broken or dirty or damaged or dumped, and need fixing, cleaning
or clearing</strong>, such as:
@@ -38,8 +38,8 @@
</ul>
</dd>
- <dt>What isn&rsquo;t [% PROCESS 'site-name.html' -%] for?</dt>
- <dd>[% PROCESS 'site-name.html' -%] is not a way of getting in touch with your
+ <dt>What isn&rsquo;t [% site_name %] for?</dt>
+ <dd>[% site_name %] is not a way of getting in touch with your
authority for all issues &ndash; 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,
<a href="https://www.mysociety.org/donate/">please do</a>.</dd>
- <dt>Can I use [% PROCESS 'site-name.html' -%] on my mobile?</dt>
+ <dt>Can I use [% site_name %] on my mobile?</dt>
<dd>
- <p>The [% PROCESS 'site-name.html' -%] website will already work on your mobile
+ <p>The [% site_name %] website will already work on your mobile
phone, adapting to the size of your screen automatically.</p>
</dd>
</dl>
@@ -90,18 +90,18 @@
to find out where reports go at the moment. Also <a href="/contact">contact us</a>
to update the address or addresses we use.</dd>
- <dt>I&rsquo;m from an authority, can we have [% PROCESS 'site-name.html' -%]
+ <dt>I&rsquo;m from an authority, can we have [% site_name %]
on our website?</dt>
<dd>Quite possibly &ndash; contact the people who run this site.</dd>
<dt>Do you remove silly or illegal content?</dt>
- <dd>[% PROCESS 'site-name.html' -%] is not responsible for the content and
+ <dd>[% site_name %] 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.</dd>
<dt>Why can&rsquo;t I zoom out more on the reporting map?</dt>
- <dd>We want to keep [% PROCESS 'site-name.html' -%] locally focused, so restrict
+ <dd>We want to keep [% site_name %] locally focused, so restrict
the ability to move radically between areas. The map on Your Reports will
let you see all the reports you&rsquo;ve made, wherever they are. If
you&rsquo;re from the authority then the emailed version of the problem
@@ -111,7 +111,7 @@ to update the address or addresses we use.</dd>
<h2><a name="organisation"></a>Organisation Questions</h2>
<dl>
- <dt>Who built [% PROCESS 'site-name.html' -%]?</dt>
+ <dt>Who built [% site_name %]?</dt>
<dd>This will depend upon the installation of the FixMyStreet Platform,
who should create their own <code>faq/</code> template in their cobrand
directory to replace this default one. The FixMyStreet Platform was
diff --git a/templates/web/base/footer.html b/templates/web/base/footer.html
index a58a3e696..102aacd25 100644
--- a/templates/web/base/footer.html
+++ b/templates/web/base/footer.html
@@ -21,7 +21,7 @@
<div id="footer">
- <p><a href="/contact">[% loc("Contact FixMyStreet") | replace(' ', '&nbsp;') %]</a></p>
+ <p><a href="/contact">[% tprintf(loc("Contact %s", "%s is the site name"), site_name) | replace(' ', '&nbsp;') %]</a></p>
<p>[% loc('Are you a <strong>developer</strong>? Would you like to contribute to FixMyStreet?') %]
[% loc('Our code is open source and <a href="http://github.com/mysociety/fixmystreet">available on GitHub</a>.') %]
diff --git a/templates/web/base/open311/index.html b/templates/web/base/open311/index.html
index 502b1a69a..d42cc2106 100644
--- a/templates/web/base/open311/index.html
+++ b/templates/web/base/open311/index.html
@@ -3,9 +3,9 @@
<div class="sticky-sidebar">
<aside>
<ul class="plain-list">
- <li><a href="/faq">Frequently Asked Questions</a></li>
- <li><a href="/privacy">Privacy and cookies</a></li>
- <li><a href="/contact">Contact FixMyStreet</a></li>
+ <li><a href="/faq">[% loc('Frequently Asked Questions') %]</a></li>
+ <li><a href="/privacy">[% loc('Privacy and cookies') %]</a></li>
+ <li><a href="/contact">[% tprintf(loc("Contact %s", "%s is the site name"), site_name) %]</a></li>
</ul>
</aside>
</div>
diff --git a/templates/web/base/report/display.html b/templates/web/base/report/display.html
index 0731d9f0e..329614488 100644
--- a/templates/web/base/report/display.html
+++ b/templates/web/base/report/display.html
@@ -2,7 +2,7 @@
PROCESS "maps/${map.type}.html";
problem_title = problem.title_safe _ ' - ' _ loc('Viewing a problem');
- SET rss = [ loc('Updates to this problem, FixMyStreet'), "/rss/$problem.id" ] IF c.cobrand.moniker != 'emptyhomes';
+ SET rss = [ tprintf(loc('Updates to this problem, %s', "%s is the site name"), site_name), "/rss/$problem.id" ] IF c.cobrand.moniker != 'emptyhomes';
SET robots = 'index, nofollow';
SET robots = 'noindex, nofollow' IF c.cobrand.moniker == 'emptyhomes';
INCLUDE 'header.html'
diff --git a/templates/web/base/report/new/fill_in_details_form.html b/templates/web/base/report/new/fill_in_details_form.html
index d1431ffd3..ee219d563 100644
--- a/templates/web/base/report/new/fill_in_details_form.html
+++ b/templates/web/base/report/new/fill_in_details_form.html
@@ -110,7 +110,8 @@
[% INCLUDE 'report/new/notes.html' %]
<div id="form_sign_in">
- <h3>[% loc("Now to submit your report&hellip; do you have a FixMyStreet password?") %]</h3>
+ <h3>[% loc("Now to submit your report&hellip;") %]</h3>
+ <h2>[% tprintf(loc("Do you have a %s password?", "%s is the site name"), site_name) %]</h2>
<div id="form_sign_in_yes">
diff --git a/templates/web/base/report/update-form.html b/templates/web/base/report/update-form.html
index 4e762a9a5..3115855d3 100644
--- a/templates/web/base/report/update-form.html
+++ b/templates/web/base/report/update-form.html
@@ -83,7 +83,8 @@
</div>
<div id="form_sign_in">
- <h3>[% loc("Now to submit your update&hellip; do you have a FixMyStreet password?") %]</h3>
+ <h3>[% loc("Now to submit your update&hellip;") %]</h3>
+ <h2>[% tprintf(loc("Do you have a %s password?", "%s is the site name"), site_name) %]</h2>
<div id="form_sign_in_yes">
diff --git a/templates/web/base/reports/body.html b/templates/web/base/reports/body.html
index b98c5bec6..ffb5d8838 100755
--- a/templates/web/base/reports/body.html
+++ b/templates/web/base/reports/body.html
@@ -21,7 +21,7 @@
SET bodyclass = 'mappage';
INCLUDE 'header.html',
title = tprintf(loc('%s - Summary reports'), name)
- rss = [ tprintf(loc('Problems within %s, FixMyStreet'), name), rss_url ]
+ rss = [ tprintf(loc('Problems within %s, %s', "First %s is the body name, second %s the site name"), name, site_name), rss_url ]
%]
[% map_html %]
diff --git a/templates/web/base/static/privacy.html b/templates/web/base/static/privacy.html
index 36720207b..11ab65311 100755
--- a/templates/web/base/static/privacy.html
+++ b/templates/web/base/static/privacy.html
@@ -1,13 +1,13 @@
[% INCLUDE 'header.html',
- title = loc('Frequently Asked Questions'),
+ title = loc('Privacy and cookies'),
bodyclass = 'twothirdswidthpage' %]
<div class="sticky-sidebar">
<aside>
<ul class="plain-list">
- <li><a href="/faq">Frequently Asked Questions</a></li>
- <li><strong>Privacy and cookies</strong></li>
- <li><a href="/contact">Contact [% PROCESS 'site-name.html' -%]</a></li>
+ <li><a href="/faq">[% loc('Frequently Asked Questions') %]</a></li>
+ <li><a href="/privacy">[% loc('Privacy and cookies') %]</a></li>
+ <li><a href="/contact">[% tprintf(loc("Contact %s", "%s is the site name"), site_name) %]</a></li>
</ul>
</aside>
</div>
diff --git a/templates/web/bromley/footer.html b/templates/web/bromley/footer.html
new file mode 100644
index 000000000..689871fff
--- /dev/null
+++ b/templates/web/bromley/footer.html
@@ -0,0 +1,37 @@
+ [% IF pagefooter %]
+ <footer role="contentinfo">
+ [% INCLUDE 'front/footer-marketing.html' %]
+ </footer>
+ [% END %]
+ </div><!-- .content role=main -->
+ </div><!-- .container -->
+ [% IF c.cobrand.moniker == 'fixmystreet' AND bodyclass != 'mappage' %]
+ [% INCLUDE 'footer-nav.html' %]
+ [% END %]
+ </div><!-- .table-cell -->
+
+ <div class="nav-wrapper">
+ <div class="nav-wrapper-2">
+ <div id="main-nav" role="navigation">
+ <ul class="nav-menu nav-menu--main">
+ <li><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END
+ %]>[% loc("Report a problem") %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[%
+ %]<li><[% IF c.req.uri.path == '/my' %]span[% ELSE %]a href="/my"[% END
+ %]>[% loc("Your reports") %]</[% c.req.uri.path == '/my' ? 'span' : 'a' %]></li>[%
+ %]<li><[% IF c.req.uri.path == '/reports' %]span[% ELSE %]a href="/reports"[% END
+ %]>[% loc("All reports") %]</[% c.req.uri.path == '/reports' ? 'span' : 'a' %]></li>[%
+ %]<li><[% IF c.req.uri.path == '/alert' %]span[% ELSE %]a href="/alert[% pc ? '/list?pc=' : '' %][% pc | uri %]"[% END
+ %]>[% loc("Local alerts") %]</[% c.req.uri.path == '/alert' ? 'span' : 'a' %]></li>[%
+ %]<li><[% IF c.req.uri.path == '/faq' %]span[% ELSE %]a href="/faq"[% END
+ %]>[% loc("Help") %]</[% c.req.uri.path == '/faq' ? 'span' : 'a' %]></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+
+ </div> <!-- .wrapper -->
+
+ [% TRY %][% PROCESS 'footer_extra.html' %][% CATCH file %][% END %]
+
+</body>
+</html>
diff --git a/templates/web/bromley/header_logo.html b/templates/web/bromley/header_logo.html
index 8d1fa7855..92ff771f9 100644
--- a/templates/web/bromley/header_logo.html
+++ b/templates/web/bromley/header_logo.html
@@ -1,5 +1,5 @@
<div class="bromley-header cf">
- <a href="http://www.bromley.gov.uk/" id="site-logo">[%- PROCESS 'site-name.html' -%]</a>
+ <a href="http://www.bromley.gov.uk/" id="site-logo">[% site_name %]</a>
<ul class="linear-links subtext float-right top-links">
<li class="first-child"><i class="fa fa-home"></i><a href="http://www.bromley.gov.uk">Home</a></li>
@@ -59,4 +59,4 @@
<li class="current"><span>FixMyStreet</span></li>
</ul>
<!-- END Breadcrumb --><!-- googleon:all -->
- </div> \ No newline at end of file
+ </div>
diff --git a/templates/web/fiksgatami/footer.html b/templates/web/fiksgatami/footer.html
index e9fbeb716..f5088bcb4 100644
--- a/templates/web/fiksgatami/footer.html
+++ b/templates/web/fiksgatami/footer.html
@@ -10,11 +10,11 @@
<div class="nav-wrapper">
<div class="nav-wrapper-2">
<div id="main-nav" role="navigation">
- <ul id="mysoc-menu">
+ <ul class="nav-menu nav-menu--mysoc">
<li><a href="http://www.nuug.no/">Foreningen NUUG</a></li>
</ul>
- <ul id="main-menu">
+ <ul class="nav-menu nav-menu--main">
<li><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END %] class="report-a-problem-btn"
>[% loc("Report a problem") %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[%
%]<li><[% IF c.req.uri.path == '/my' %]span[% ELSE %]a href="/my"[% END
diff --git a/templates/web/fiksgatami/nn/footer.html b/templates/web/fiksgatami/nn/footer.html
index cfef66bc9..d7703388a 100644
--- a/templates/web/fiksgatami/nn/footer.html
+++ b/templates/web/fiksgatami/nn/footer.html
@@ -10,11 +10,11 @@
<div class="nav-wrapper">
<div class="nav-wrapper-2">
<div id="main-nav" role="navigation">
- <ul id="mysoc-menu">
+ <ul class="nav-menu nav-menu--mysoc">
<li><a href="http://www.nuug.no/">Foreininga NUUG</a></li>
</ul>
- <ul id="main-menu">
+ <ul class="nav-menu nav-menu--main">
<li><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END %] class="report-a-problem-btn"
>[% loc("Report a problem") %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[%
%]<li><[% IF c.req.uri.path == '/my' %]span[% ELSE %]a href="/my"[% END
diff --git a/templates/web/fixamingata/footer.html b/templates/web/fixamingata/footer.html
index c6f49cb79..376d79ff4 100644
--- a/templates/web/fixamingata/footer.html
+++ b/templates/web/fixamingata/footer.html
@@ -10,7 +10,7 @@
<div class="nav-wrapper">
<div class="nav-wrapper-2">
<div id="main-nav" role="navigation">
- <ul id="main-menu">
+ <ul class="nav-menu nav-menu--main">
<li><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END %] class="report-a-problem-btn"
>[% loc("Report a problem") %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[%
%]<li><[% IF c.req.uri.path == '/my' %]span[% ELSE %]a href="/my"[% END
diff --git a/templates/web/fixmindelo/footer.html b/templates/web/fixmindelo/footer.html
index e11b81827..afd8984c7 100644
--- a/templates/web/fixmindelo/footer.html
+++ b/templates/web/fixmindelo/footer.html
@@ -28,11 +28,11 @@
<div class="nav-wrapper">
<div class="nav-wrapper-2">
<div id="main-nav" role="navigation">
- <ul id="mysoc-menu">
+ <ul class="nav-menu nav-menu--mysoc">
<li><a id="mysoc-logo" href="http://www.mysociety.org/">mySociety</a></li>
</ul>
- <ul id="main-menu">
+ <ul class="nav-menu nav-menu--main">
<li><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END %] class="report-a-problem-btn"
>[% loc("Report a problem") %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[%
%]<li><[% IF c.req.uri.path == '/my' %]span[% ELSE %]a href="/my"[% END
diff --git a/templates/web/fixmybarangay/footer.html b/templates/web/fixmybarangay/footer.html
index 5bac32e98..d1f9203f2 100644
--- a/templates/web/fixmybarangay/footer.html
+++ b/templates/web/fixmybarangay/footer.html
@@ -5,13 +5,11 @@
<div class="nav-wrapper">
<div class="nav-wrapper-2">
<div id="main-nav" role="navigation">
- <ul id="mysoc-menu">
- <li><a id="mysoc-logo" href="http://www.mysociety.org/">mySociety</a></li>[%
- %]<!--<li><a href="http://mysociety.org/donate/">Donate</a></li>[%
- %]<li><a href="http://www.mysociety.org/projects/">Our Sites</a></li>-->
+ <ul class="nav-menu nav-menu--mysoc">
+ <li><a id="mysoc-logo" href="http://www.mysociety.org/">mySociety</a></li>
</ul>
- <ul id="main-menu">
+ <ul class="nav-menu nav-menu--main">
<li><a href="/around?latitude=10.322;longitude=123.907" class="fmb-bgy-btn">Luz</a></li>
<li><a href="/around?latitude=10.288;longitude=123.870" class="fmb-bgy-btn">BSN</a></li>
<li><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END %] class="report-a-problem-btn"
diff --git a/templates/web/fixmystreet/alert/_list.html b/templates/web/fixmystreet/alert/_list.html
deleted file mode 100644
index f376e3c66..000000000
--- a/templates/web/fixmystreet/alert/_list.html
+++ /dev/null
@@ -1,93 +0,0 @@
- <input type="hidden" name="type" value="local">
- <input type="hidden" name="pc" value="[% pc | html %]">
- <input type="hidden" name="latitude" value="[% latitude | html %]">
- <input type="hidden" name="longitude" value="[% longitude | html %]">
-
- <p>
- [% IF pretty_pc %]
- [% tprintf( loc('Here are the types of local problem alerts for &lsquo;%s&rsquo;.'), pretty_pc ) %]
- [% END %]
- [% loc('Select which type of alert you\'d like and click the button for an RSS feed, or enter your email address to subscribe to an email alert.') %]
- </p>
-
- [% INCLUDE 'errors.html' %]
-
- <p>
- [% loc('The simplest alert is our geographic one:') %]
- </p>
-
- <p id="rss_local">
- <input type="radio" name="feed" id="[% rss_feed_id %]" value="[% rss_feed_id %]"[% IF rss_feed_id == selected_feed || selected_feed == '' %] checked[% END %]>
- <label class="inline" for="[% rss_feed_id %]">[% tprintf( loc('Problems within %.1fkm of this location'), population_radius ) %]</label>
- <a href='[% rss_feed_uri %]'><img src='/i/feed.png' width='16' height='16' title='[% loc('RSS feed of nearby problems') %]' alt='[% loc('RSS feed') %]' border='0'></a>
- <br />
- [% loc('(a default distance which covers roughly 200,000 people)') %]
- </p>
-
- <p id="rss_local_alt">
- [% loc('(alternatively the RSS feed can be customised, within') %]
- <a href="[% rss_feed_2k %]">2km</a> / <a href="[% rss_feed_5k %]">5km</a> / <a href="[% rss_feed_10k %]">10km</a> / <a href="[% rss_feed_20k %]">20km</a>)
- </p>
-
- <p>
- [% IF c.cobrand.is_council %]
- Or you can subscribe to an alert for all council problems or one based upon what ward you&rsquo;re in:
- [% ELSE %]
- [% loc("Or you can subscribe to an alert based upon what ward or council you&rsquo;re in:") %]
- [% END %]
- </p>
-
- [% IF reported_to_options %]
- <p><strong>
- [% loc('Problems within the boundary of:') %]
- </strong></p>
- <ul class="plain-list">
- [% ELSE %]
- <ul id="rss_feed" class="plain-list">
- [% END %]
-
- [% FOREACH option IN options %]
- <li[% IF ! (loop.count % 2) %] class="a"[% END %]>
- <input type="radio" name="feed" id="[% option.id %]" value="[% option.id %]"[% IF option.id == selected_feed %] checked[% END %]>
- <a href="[% option.uri %]"><img src="/i/feed.png" width="16" height="16"
-title="[% option.rss_text %]" alt="RSS feed" border="0"></a>
- <label class="inline" for="[% option.id %]">[% option.text %]</label>
- </li>
- [% END %]
-</ul>
- [% IF reported_to_options %]
- <p><strong>
- [% loc('Or problems reported to:') %]
- </strong></p>
- <ul class="plain-list">
- [% FOREACH option IN reported_to_options %]
- <li[% IF ! (loop.count % 2) %] class="a"[% END %]>
- <input type="radio" name="feed" id="[% option.id %]" value="[% option.id %]"[% IF option.id == selected_feed %] checked[% END %]>
- <a href="[% option.uri %]"><img src="/i/feed.png" width="16" height="16"
- title="[% option.rss_text %]" alt="RSS feed" border="0"></a>
- <label class="inline" for="[% option.id %]">[% option.text %]</label>
- </li>
- [% END %]
- </ul>
- <p><small>
- [% loc( 'FixMyStreet sends different categories of problem
-to the appropriate council, so problems within the boundary of a particular council
-might not match the problems sent to that council. For example, a graffiti report
-will be sent to the district council, so will appear in both of the district
-council&rsquo;s alerts, but will only appear in the "Within the boundary" alert
-for the county council.' ) %]
- </small></p>
- [% END %]
-
- <input id="alert_rss_button" class="green-btn" type="submit" name="rss" value="[% loc('Give me an RSS feed') %]">
-
- <p id="alert_or">
- [% loc('or') %]
- </p>
-
- [% UNLESS c.user_exists %]
- <label for="rznvy">[% loc('Your email') %]</label>
- <input type="text" id="rznvy" name="rznvy" value="[% rznvy | html %]">
- [% END %]
- <input id="alert_email_button" style="margin-top:1em;" class="green-btn" type="submit" name="alert" value="[% loc('Subscribe me to an email alert') %]">
-
diff --git a/templates/web/fixmystreet/contact/blurb.html b/templates/web/fixmystreet/contact/blurb.html
index 21a4ae715..3f9e88ed0 100644
--- a/templates/web/fixmystreet/contact/blurb.html
+++ b/templates/web/fixmystreet/contact/blurb.html
@@ -10,6 +10,6 @@
<p>
[% loc('Please do <strong>not</strong> report problems through this form; messages go to
-the team behind FixMyStreet, not a council. To report a problem,
+the team behind this site, not a council. To report a problem,
please <a href="/">go to the front page</a> and follow the instructions.') %]
</p>
diff --git a/templates/web/fixmystreet/contact/index.html b/templates/web/fixmystreet/contact/index.html
index 92f2451ef..96ff7643d 100644
--- a/templates/web/fixmystreet/contact/index.html
+++ b/templates/web/fixmystreet/contact/index.html
@@ -7,9 +7,9 @@
<div class="sticky-sidebar">
<aside>
<ul class="plain-list">
- <li><a href="/faq">Frequently Asked Questions</a></li>
- <li><a href="/privacy">Privacy and cookies</a></li>
- <li><strong>Contact FixMyStreet</strong></li>
+ <li><a href="/faq">[% loc('Frequently Asked Questions') %]</a></li>
+ <li><a href="/privacy">[% loc('Privacy and cookies') %]</a></li>
+ <li><strong>[% tprintf(loc("Contact %s", "%s is the site name"), site_name) %]</strong></li>
</ul>
</aside>
</div>
diff --git a/templates/web/fixmystreet/footer.html b/templates/web/fixmystreet/footer.html
index 810708919..e087fe01f 100644
--- a/templates/web/fixmystreet/footer.html
+++ b/templates/web/fixmystreet/footer.html
@@ -13,11 +13,11 @@
<div class="nav-wrapper">
<div class="nav-wrapper-2">
<div id="main-nav" role="navigation">
- <ul id="mysoc-menu">
+ <ul class="nav-menu nav-menu--mysoc">
<li><a id="mysoc-logo" href="https://www.mysociety.org/">mySociety</a></li>
</ul>
- <ul id="main-menu">
+ <ul class="nav-menu nav-menu--main">
<li><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END %] class="report-a-problem-btn"
>[% loc("Report a problem") %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[%
%]<li><[% IF c.req.uri.path == '/my' %]span[% ELSE %]a href="/my"[% END
@@ -28,7 +28,7 @@
%]>[% loc("Local alerts") %]</[% c.req.uri.path == '/alert' ? 'span' : 'a' %]></li>[%
%]<li><[% IF c.req.uri.path == '/faq' %]span[% ELSE %]a href="/faq"[% END
%]>[% loc("Help") %]</[% c.req.uri.path == '/faq' ? 'span' : 'a' %]></li>[%
- %]<li id="top-nav-privacy"><[% IF c.req.uri.path == '/privacy' %]span[% ELSE %]a href="/privacy"[% END
+ %]<li class="nav-menu__item--privacy"><[% IF c.req.uri.path == '/privacy' %]span[% ELSE %]a href="/privacy"[% END
%]>[% loc("Privacy") %]</[% c.req.uri.path == '/privacy' ? 'span' : 'a' %]></li>
</ul>
</div>
diff --git a/templates/web/fixmystreet/front/footer-marketing.html b/templates/web/fixmystreet/front/footer-marketing.html
index 249dbca8d..c0c9b4168 100644
--- a/templates/web/fixmystreet/front/footer-marketing.html
+++ b/templates/web/fixmystreet/front/footer-marketing.html
@@ -9,7 +9,7 @@
<div id="footer-help">
<p>
- Powered by <a class="platform-logo" href="http://fixmystreet.org/">FixMyStreet Platform</a>
+ [% loc('Powered by <a class="platform-logo" href="http://fixmystreet.org/">FixMyStreet Platform</a>') %]
</p>
<ul>
<li>
diff --git a/templates/web/fixmystreet/header_logo.html b/templates/web/fixmystreet/header_logo.html
index 3ae706730..8ab06c936 100644
--- a/templates/web/fixmystreet/header_logo.html
+++ b/templates/web/fixmystreet/header_logo.html
@@ -1,2 +1,2 @@
- <a href="/" id="site-logo">[%- PROCESS 'site-name.html' -%]</a>
+ <a href="/" id="site-logo">[% site_name %]</a>
<a href="/" id="report-cta" title="[%- loc('Report a problem') -%]">[%- loc('Report') -%]</a>
diff --git a/templates/web/fixmystreet/header_opengraph.html b/templates/web/fixmystreet/header_opengraph.html
index d0cd31261..f83296160 100644
--- a/templates/web/fixmystreet/header_opengraph.html
+++ b/templates/web/fixmystreet/header_opengraph.html
@@ -1,6 +1,6 @@
<meta property="og:url" content="[% c.cobrand.base_url %][% c.req.uri.path %]">
- <meta property="og:title" content="[% title || 'FixMyStreet' %]">
- <meta property="og:site_name" content="[%- PROCESS 'site-name.html' -%]">
+ <meta property="og:title" content="[% title || site_name %]">
+ <meta property="og:site_name" content="[% site_name %]">
[% IF c.req.uri.path == '/' %]<meta property="og:description" content="Report, view, and discuss local street-related problems.">[% END %]
<meta property="og:type" content="website">
<meta property="og:image" content="[% c.cobrand.base_url %]/cobrands/fixmystreet/fms-og_image.png">
diff --git a/templates/web/fixmystreet/report/display.html b/templates/web/fixmystreet/report/display.html
index 0006241c3..5f499dd6e 100644
--- a/templates/web/fixmystreet/report/display.html
+++ b/templates/web/fixmystreet/report/display.html
@@ -6,7 +6,7 @@
problem_title = problem.title_safe _ ' - ' _ loc('Viewing a problem');
INCLUDE 'header.html'
title = problem_title
- rss = [ loc('Updates to this problem, FixMyStreet'), "/rss/$problem.id" ]
+ rss = [ tprintf(loc('Updates to this problem, %s', "%s is the site name"), site_name), "/rss/$problem.id" ]
robots = 'index, nofollow';
%]
diff --git a/templates/web/fixmystreet/report/new/form_user_loggedout.html b/templates/web/fixmystreet/report/new/form_user_loggedout.html
index 31cccd44e..c5a58e8a9 100644
--- a/templates/web/fixmystreet/report/new/form_user_loggedout.html
+++ b/templates/web/fixmystreet/report/new/form_user_loggedout.html
@@ -8,7 +8,7 @@
<div id="form_sign_in">
<h3>[% loc("Now to submit your report&hellip;") %]</h3>
- <h2>[% loc("Do you have a FixMyStreet password?") %]</h2>
+ <h2>[% tprintf(loc("Do you have a %s password?", "%s is the site name"), site_name) %]</h2>
<div id="form_sign_in_yes" class="form-box">
diff --git a/templates/web/fixmystreet/report/update-form.html b/templates/web/fixmystreet/report/update-form.html
index f5dca4669..a69b793b7 100644
--- a/templates/web/fixmystreet/report/update-form.html
+++ b/templates/web/fixmystreet/report/update-form.html
@@ -83,7 +83,7 @@
<div id="form_sign_in">
<h3>[% loc("Now to submit your update&hellip;") %]</h3>
- <h2>[% loc("Do you have a FixMyStreet password?") %]</h2>
+ <h2>[% tprintf(loc("Do you have a %s password?", "%s is the site name"), site_name) %]</h2>
<div id="form_sign_in_yes" class="form-box">
<h5>[% loc('<strong>Yes</strong> I have a password') %]</h5>
diff --git a/templates/web/greenwich/footer.html b/templates/web/greenwich/footer.html
index 31ab35f52..fe905acb1 100644
--- a/templates/web/greenwich/footer.html
+++ b/templates/web/greenwich/footer.html
@@ -13,11 +13,7 @@
<div class="nav-wrapper">
<div class="nav-wrapper-2">
<div id="main-nav" role="navigation">
- <ul id="mysoc-menu">
- <li><a id="mysoc-logo" href="https://www.mysociety.org/">mySociety</a></li>
- </ul>
-
- <ul id="main-menu">
+ <ul class="nav-menu nav-menu--main">
<li><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END %] class="report-a-problem-btn"
>[% loc("Report a problem") %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[%
%]<li><[% IF c.req.uri.path == '/my' %]span[% ELSE %]a href="/my"[% END
@@ -28,14 +24,13 @@
%]>[% loc("Local alerts") %]</[% c.req.uri.path == '/alert' ? 'span' : 'a' %]></li>[%
%]<li><[% IF c.req.uri.path == '/faq' %]span[% ELSE %]a href="/faq"[% END
%]>[% loc("Help") %]</[% c.req.uri.path == '/faq' ? 'span' : 'a' %]></li>[%
- %]<li id="top-nav-privacy"><[% IF c.req.uri.path == '/privacy' %]span[% ELSE %]a href="/privacy"[% END
+ %]<li class="nav-menu__item--privacy"><[% IF c.req.uri.path == '/privacy' %]span[% ELSE %]a href="/privacy"[% END
%]>[% loc("Privacy") %]</[% c.req.uri.path == '/privacy' ? 'span' : 'a' %]></li>
</ul>
</div>
</div>
</div>
-<!-- [% INCLUDE 'debug_footer.html' %] -->
</div> <!-- .wrapper -->
[% TRY %][% PROCESS 'footer_extra.html' %][% CATCH file %][% END %]
diff --git a/templates/web/greenwich/header_logo.html b/templates/web/greenwich/header_logo.html
index fa279bdc4..d788de6f8 100644
--- a/templates/web/greenwich/header_logo.html
+++ b/templates/web/greenwich/header_logo.html
@@ -1,4 +1,4 @@
- <a href="http://www.royalgreenwich.gov.uk/" id="site-logo">[%- PROCESS 'site-name.html' -%]</a>
+ <a href="http://www.royalgreenwich.gov.uk/" id="site-logo">[% site_name %]</a>
</div>
<div class="container main-menu-container">
<ul id="greenwich-menu-desktop">
diff --git a/templates/web/harrogate/footer.html b/templates/web/harrogate/footer.html
index 4558b2381..f262f6156 100644
--- a/templates/web/harrogate/footer.html
+++ b/templates/web/harrogate/footer.html
@@ -14,34 +14,33 @@
<div class="nav-wrapper-2">
<div id="main-nav" role="navigation">
- <ul id="main-menu">
+ <ul class="nav-menu nav-menu--main">
[% selected = c.req.uri.path == '/' %]
- <li [% selected ? 'class="menu-item-selected"' : '' %]>
- <[% IF selected %]span[% ELSE %]a href="/"[% END %] class="report-a-problem-btn">
+ <li><[% IF selected %]span[% ELSE %]a href="/"[% END %]>
[% loc("Report a problem") %]</[% selected == '/' ? 'span' : 'a' %]></li>
[% selected = c.req.uri.path == '/my' %]
- <li [% selected ? 'class="menu-item-selected"' : '' %]>
+ <li>
<[% IF selected %]span[% ELSE %]a href="/my"[% END %]>
[% loc("Your reports") %]</[% selected ? 'span' : 'a' %]></li>
[% selected = c.req.uri.path == '/reports/Harrogate' %]
- <li [% selected ? 'class="menu-item-selected"' : '' %]>
+ <li>
<[% IF selected %]span[% ELSE %]a href="/reports"[% END %]>
[% loc("All reports") %]</[% selected ? 'span' : 'a' %]></li>
[% selected = c.req.uri.path == '/alert' %]
- <li [% selected ? 'class="menu-item-selected"' : '' %]>
+ <li>
<[% IF selected %]span[% ELSE %]a href="/alert[% pc ? '/list?pc=' : '' %][% pc | uri %]"[% END %]>
[% loc("Local alerts") %]</[% selected ? 'span' : 'a' %]></li>
[% selected = c.req.uri.path == '/faq' %]
- <li [% selected ? 'class="menu-item-selected"' : '' %]>
+ <li>
<[% IF selected %]span[% ELSE %]a href="/faq"[% END %]>
[% loc("Help") %]</[% selected ? 'span' : 'a' %]></li>
[% selected = c.req.uri.path == '/privacy' %]
- <li id="top-nav-privacy" [% selected ? 'class="menu-item-selected"' : '' %]>
+ <li class="nav-menu__item--privacy">
<[% IF selected %]span[% ELSE %]a href="/privacy"[% END %]>
[% loc("Privacy") %]</[% selected ? 'span' : 'a' %]></li>
</ul>
diff --git a/templates/web/harrogate/static/privacy.html b/templates/web/harrogate/static/privacy.html
index 7f0f090e4..767f80fbf 100755
--- a/templates/web/harrogate/static/privacy.html
+++ b/templates/web/harrogate/static/privacy.html
@@ -7,7 +7,7 @@
<ul class="plain-list">
<li><a href="/faq">Frequently Asked Questions</a></li>
<li><strong>Privacy and cookies</strong></li>
- <li><a href="/contact">Contact [%- PROCESS 'site-name.html' -%]</a></li>
+ <li><a href="/contact">Contact [% site_name %]</a></li>
</ul>
</aside>
</div>
diff --git a/templates/web/oxfordshire/footer.html b/templates/web/oxfordshire/footer.html
index ed84c0ad6..3153125fd 100644
--- a/templates/web/oxfordshire/footer.html
+++ b/templates/web/oxfordshire/footer.html
@@ -10,11 +10,11 @@
<div class="nav-wrapper">
<div class="nav-wrapper-2">
<div id="main-nav" role="navigation">
- <ul id="mysoc-menu">
+ <ul class="nav-menu nav-menu--mysoc">
<li><a id="mysoc-logo" href="https://www.fixmystreet.com/council">Powered by <img src="/cobrands/oxfordshire/images/fms-logo-105x20.png" alt="FixMyStreet"></a></li>
</ul>
- <ul id="main-menu">
+ <ul class="nav-menu nav-menu--main">
<li><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END %] class="report-a-problem-btn"
>[% loc("Report a problem") %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[%
%]<li><[% IF c.req.uri.path == '/my' %]span[% ELSE %]a href="/my"[% END
diff --git a/templates/web/seesomething/footer.html b/templates/web/seesomething/footer.html
index 95297f33d..c29f222d2 100644
--- a/templates/web/seesomething/footer.html
+++ b/templates/web/seesomething/footer.html
@@ -6,7 +6,7 @@
<div class="nav-wrapper-2">
<div id="main-nav" role="navigation">
- <ul id="main-menu">
+ <ul class="nav-menu nav-menu--main">
<li><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END %] class="report-a-problem-btn"
>[% loc("Report a problem") %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[%
%]<li><[% IF c.req.uri.path == '/faq' %]span[% ELSE %]a href="/faq"[% END
diff --git a/templates/web/stevenage/footer.html b/templates/web/stevenage/footer.html
index 454da2bd9..f9bf63fb6 100644
--- a/templates/web/stevenage/footer.html
+++ b/templates/web/stevenage/footer.html
@@ -34,7 +34,7 @@
<div class="nav-wrapper">
<div class="nav-wrapper-2">
<div id="main-nav" role="navigation">
- <ul id="main-menu">
+ <ul class="nav-menu nav-menu--main">
<li><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END %] class="report-a-problem-btn"
>[% loc("Report a problem") %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[%
%]<li><[% IF c.req.uri.path == '/my' %]span[% ELSE %]a href="/my"[% END
diff --git a/templates/web/trinidadtobago/footer.html b/templates/web/trinidadtobago/footer.html
index 4ef368c0d..bace22e71 100644
--- a/templates/web/trinidadtobago/footer.html
+++ b/templates/web/trinidadtobago/footer.html
@@ -10,13 +10,13 @@
<div class="nav-wrapper">
<div class="nav-wrapper-2">
<div id="main-nav" role="navigation">
- <ul id="mysoc-menu">
+ <ul class="nav-menu nav-menu--mysoc">
<li><a id="mysoc-logo" href="http://www.mysociety.org/">mySociety</a></li>[%
%]<li><a href="http://mysociety.org/donate/">Donate</a></li>[%
%]<li><a href="http://www.mysociety.org/projects/">Our Sites</a></li>
</ul>
- <ul id="main-menu">
+ <ul class="nav-menu nav-menu--main">
<li><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END %] class="report-a-problem-btn"
>[% loc("Report a problem") %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[%
%]<li><[% IF c.req.uri.path == '/my' %]span[% ELSE %]a href="/my"[% END
diff --git a/templates/web/trinidadtobago/header_logo.html b/templates/web/trinidadtobago/header_logo.html
index d5da7e6b2..afc37c252 100644
--- a/templates/web/trinidadtobago/header_logo.html
+++ b/templates/web/trinidadtobago/header_logo.html
@@ -1 +1 @@
- <a href="[% c.config.BASE_URL %]/" id="site-logo">[% PROCESS 'site-name.html' -%]</a>
+ <a href="[% c.config.BASE_URL %]/" id="site-logo">[% site_name %]</a>
diff --git a/templates/web/warwickshire/header.html b/templates/web/warwickshire/header.html
index e7b3d53a1..35baeacd7 100644
--- a/templates/web/warwickshire/header.html
+++ b/templates/web/warwickshire/header.html
@@ -195,7 +195,7 @@
%]>[% loc("Local alerts") %]</[% c.req.uri.path == '/alert' ? 'span' : 'a' %]></li>[%
%]<li><[% IF c.req.uri.path == '/faq' %]span[% ELSE %]a href="/faq"[% END
%]>[% loc("Help") %]</[% c.req.uri.path == '/faq' ? 'span' : 'a' %]></li>[%
- %]<li id="top-nav-privacy"><[% IF c.req.uri.path == '/privacy' %]span[% ELSE %]a href="/privacy"[% END
+ %]<li class="nav-menu__item--privacy"><[% IF c.req.uri.path == '/privacy' %]span[% ELSE %]a href="/privacy"[% END
%]>[% loc("Privacy") %]</[% c.req.uri.path == '/privacy' ? 'span' : 'a' %]></li>
</ul>
</div>
diff --git a/templates/web/zerotb/footer.html b/templates/web/zerotb/footer.html
index c46a03878..cef009484 100644
--- a/templates/web/zerotb/footer.html
+++ b/templates/web/zerotb/footer.html
@@ -6,7 +6,7 @@
<div class="nav-wrapper">
<div class="nav-wrapper-2">
<div id="main-nav" role="navigation">
- <ul id="main-menu">
+ <ul class="nav-menu nav-menu--main">
<li><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END %] class="report-a-problem-btn"
>[% loc("Report a Stockout") %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[%
%]<li><[% IF c.req.uri.path == '/faq' %]span[% ELSE %]a href="/faq"[% END
diff --git a/templates/web/zurich/footer.html b/templates/web/zurich/footer.html
index 2304c048e..f70470226 100644
--- a/templates/web/zurich/footer.html
+++ b/templates/web/zurich/footer.html
@@ -12,7 +12,7 @@
</p><p><a href="/admin">[% loc('Summary') %]</a> | <a href="/auth/sign_out">[% loc('sign out') %]</a>
</p>
[% END %]
- <ul id="main-menu" class="mob-only">
+ <ul class="nav-menu nav-menu--main mob-only">
<li><[% IF c.req.uri.path == '/' %]a onclick="$('html, body').animate({scrollTop:0}, 500); return false;" href="#site-header"[% ELSE %]a href="/"[% END %]
>[% loc("Report a problem") %]</[% c.req.uri.path == '/' ? 'a' : 'a' %]></li>[%
%]<li><[% IF c.req.uri.path == '/reports' %]span[% ELSE %]a href="/reports"[% END
diff --git a/web/cobrands/bromley/base.scss b/web/cobrands/bromley/base.scss
index 181eb182c..7193104f9 100644
--- a/web/cobrands/bromley/base.scss
+++ b/web/cobrands/bromley/base.scss
@@ -44,11 +44,6 @@ body.mappage {
}
}
-// Hide the mysociety menu
-#mysoc-menu {
- display: none;
-}
-
// Reset form placeholders so that they match Bromley's
// input placeholders, these need to be on separate lines as if the browser
// can't understand a selector it will invalidate the whole line.
diff --git a/web/cobrands/bromley/layout.scss b/web/cobrands/bromley/layout.scss
index 55d9a7f40..4b61f8ee9 100644
--- a/web/cobrands/bromley/layout.scss
+++ b/web/cobrands/bromley/layout.scss
@@ -53,21 +53,14 @@ body.mappage {
}
// Override the FMS main menu to give it a background colour
-#main-menu {
+.nav-menu--main {
background-color: $bromley_blue;
}
-// Override the selected element to match. We need to do this separately
-// because of FMS's selectors being quite specific
-#main-nav ul#main-menu li span {
+.nav-menu--main span {
color: $nav_fg;
background-color: $nav_fg_hover;
}
-// Override the "report a problem" button because it's not really a button
-#main-nav ul#main-menu li a.report-a-problem-btn {
- color: $nav_fg;
-}
-
// Fix bad margin on local alerts form
body.alertindex form.full-width {
margin-left: 0;
diff --git a/web/cobrands/fixmindelo/base.scss b/web/cobrands/fixmindelo/base.scss
index 486c66672..9a8ca9021 100644
--- a/web/cobrands/fixmindelo/base.scss
+++ b/web/cobrands/fixmindelo/base.scss
@@ -57,7 +57,7 @@ $image-sprite: 'images/sprite.png';
}
}
-#main-nav ul#mysoc-menu li a#mysoc-logo {
+#mysoc-logo {
background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFYAAAASCAYAAADBnymNAAADAElEQVR42t2XvarWQBCGcwl7CVspFgfTiO0WdjbptdjeJrXV3kFKC4tFRAubra2CvZA7MKVwQALaKAjrG5jF4SU5CR+JyDfw4Mnfmu/J7Mxu9S8j5+xBD3T0wFUnxO3tbQAZDNW1BuR1eT38SWJ7kIX6gneuQQD2f5VqQYkBNMDJvwmYk8TWIjdc8M4BlHCX/ucOWDluQAC1uscCD1pg+dmZhXGdUIvEEk21I74/emhAmtn54bzIaIBV593MjmcMZWoEJVrgynhCTeMZdc3q6RLBALIiitCJznuRF9W5hoRnIZLYBMwOsS3IMz+e3jS/3t4LoFn4MT3gGDnrFrKRYyqy1JgcAYzlgD5Gq0ubEiuIXGICAx0bFshNQ3AiYNI/HAQSzGIt6EH6+ep+B6kZsKCBxuzlXGSBKwISyRpVPxipfPUlw7k30MeYgGGxbZnGJNEuCZNzY7mvklAfYaTpNS1kyWb9mzNVxA60wpCASI51sRM/I+9WormjxnK/SH9nDr2LFks1Mgs91U0W2+pyAIw67njqUoaUCO9cNCCBRUm/vz0wIAlcAswOsSwwgqAoEbaal2R6CQMauvcQsYZrsjq2FcXKlJwgtAVZcAtiPciCU2Ili3eJdXkztsWSSA+iLiWHiKUmNoG4d1GuOy9kWjCCHpiTMtZxxi7g9iy31KxL6u/uaLFckzPwvBRZKAuj/uEvn7wxYAQTsJXE689NAybQr2w4uh1iuRamS9axfJ36hj1ULDWxguGpIyITiFRnOxHrQJ558Sw1Nx+/JhAhNIA8Q01kos4dZOzujuYV+RkhUkNztOLoQL3UxKgkHSqWm1jcWjeurWshtQPx8YcvAVLzzPNP71tITSDQuF7kcgwrYnnty7G+nNtuYp7FehBm6HwQPO3AgmDp/o725Yv7bmJ1/w6hFgwgAcPXSVTL46qsC7yk42tCC+qNse2K+LE6IThbU3WdwcIjZevhUkfekV25VN7o9NXRwbssUFfXHdy0emDOEutBe+2Zys14a/r/AWrug1ElrRIFAAAAAElFTkSuQmCC');
background-position: 20px center;
}
diff --git a/web/cobrands/fixmindelo/layout.scss b/web/cobrands/fixmindelo/layout.scss
index 8dfea7acd..70e65d362 100644
--- a/web/cobrands/fixmindelo/layout.scss
+++ b/web/cobrands/fixmindelo/layout.scss
@@ -15,16 +15,8 @@ body {
}
}
-#main-nav {
- ul {
- &#main-menu {
- li {
- a.report-a-problem-btn {
- color: #fff;
- }
- }
- }
- }
+.nav-menu--main a.report-a-problem-btn {
+ color: #fff;
}
body.frontpage {
@@ -64,7 +56,7 @@ body.admin {
}
}
-#main-nav ul#mysoc-menu li a#mysoc-logo {
+#mysoc-logo {
background-position: 6px 10px;
}
diff --git a/web/cobrands/fixmybarangay/base.scss b/web/cobrands/fixmybarangay/base.scss
index 81cf4785d..2f3fddaf3 100644
--- a/web/cobrands/fixmybarangay/base.scss
+++ b/web/cobrands/fixmybarangay/base.scss
@@ -26,7 +26,7 @@ input.yellow-btn{
}
}
-#main-nav ul#main-menu li a.report-a-problem-btn:hover {
+.nav-menu--main a.report-a-problem-btn:hover {
background: #fff;
}
diff --git a/web/cobrands/fixmybarangay/layout.scss b/web/cobrands/fixmybarangay/layout.scss
index 4a662754d..defe1afd0 100644
--- a/web/cobrands/fixmybarangay/layout.scss
+++ b/web/cobrands/fixmybarangay/layout.scss
@@ -44,7 +44,7 @@ body.mappage .nav-wrapper div.nav-wrapper-2 {
border-bottom: 2px solid #333;
}
-#main-nav ul#mysoc-menu li a#mysoc-logo {
+#mysoc-logo {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIkAAAAyCAMAAABf9whNAAAA0lBMVEUAAABAQEBAQEBAQEBNTU1NTU1AQEBNTU1AQEBAQEBAQEBAQEBAQEBAQEBAQEBNTU1NTU1AQEBNTU1AQEBNTU1AQEBAQEBNTU2Mxj9NTU33kx5NTU1NTU1NTU3tHCRmLZEpq+JNTU2TJ4/tHCSTJ4/87iEpq+L3kx5NTU387iH87iHtHCSTJ4/3kx51K5CTJ49mLZGMxj/tHCSx0zVmLZH6wSBmLZFmLZFDdb/zYCFbuZGMxj/3kx5AQEBNTU0pq+LtHCSMxj/3kx787iFmLZGTJ49ns3BGAAAAPXRSTlMAQL+AQIAQECBwMGBQj98gn5/Pr+/vzzC/r79wYI9wv69QcK+vcICfv68QQBAwj0AwMBBggIBQr3BwgEBgSmaQCwAAAflJREFUeF7t1Ndy2zAQhtGfAAX2IpFUseSSOLGd3nt27bT3f6UsQHusRFcKmVxkcGa4wvCG34AQ8V/wPM/zPM8zSaOaxGBHtFpF+IfikqwYO0LmELfiHH/XlLokSBrsiurtPdGkMJJFWFWTSQUZC0RhWMFNRQWuvTw9RS/VOolNEBgAudYpkE5pHqRpEACIZQ4x4RkztxMWd6KWa2DDvFDUBeg9urr6cPAZMIqEDogCmDmJKdwtlbjXOCc1sIRnhyxj0vIMNbeQMUNun5DBOTo6/3oASMhUF6krka3IM1lkikqdGaICMVE2sKSNICkR1sxYyMag5TWQd7bFPH4G8eT8zcOUKIGwJUYuSE7hzoldlZAwM7Dkwg4GQjtmXMtvBZHNiZJ7P+5C3P/2oH9SXyKXo1yJq0sbmmLMkg23h7xCryR1W5L8WqKsmz1BSbqjfNSSiMUGMEB/Bp8ePwdeLF/ZAn1TEssFR1MJIZmyGLUENXNrI8pCK6IMx99fn50tvyyBcuvEKuqKXDcuocgAQ/I7conMGgA5BfD23fvLy4/LT0Ba/v4vphRxR9dnlmIMU4ULO0IgsgPr/rya3H7F4JycoCf3sq0vW5ICiLXO3YtsMC4JqbG3uCFKMSb3nYuwNyLKMK6Q6wj7a7oMY4vwJwwG8TzP8zzP834CEcRJKkEhVogAAAAASUVORK5CYII=");
}
#front-main {
@@ -65,21 +65,17 @@ body.mappage .nav-wrapper div.nav-wrapper-2 {
}
}
-#main-nav {
- ul {
- &#mysoc-menu {
- padding: 1px 0.5em;
- }
- &#main-menu{
- padding: 3px 0;
- }
-
- }
+.nav-menu--mysoc {
+ padding: 1px 0.5em;
+}
+.nav-menu--main {
+ padding: 3px 0;
}
-body.mappage #main-nav ul#main-menu li a,
-body.mappage #main-nav ul#main-menu li span,
-body #main-nav ul#main-menu li a,
-body #main-nav ul#main-menu li span
+
+body.mappage .nav-menu--main a,
+body.mappage .nav-menu--main span,
+.nav-menu--main a,
+.nav-menu--main span
{
color: #fff;
padding: 0.7em;
@@ -88,7 +84,7 @@ body #main-nav ul#main-menu li span
@include box_round(0.35em);
margin-left: 3px;
- &.report-a-problem-btn{
+ &.report-a-problem-btn {
color: #fff;
padding: 0.7em;
background-color: rgba(0,0,0,0);
@@ -99,13 +95,11 @@ body #main-nav ul#main-menu li span
&.fmb-bgy-btn {
color: #fcc921;
}
-
- &:hover{
+ &:hover {
background-color: rgba(0,0,0,0.75);
background-image: none;
}
-
}
diff --git a/web/cobrands/fixmystreet.com/layout.scss b/web/cobrands/fixmystreet.com/layout.scss
index f4c6e649b..9e8bb5baf 100644
--- a/web/cobrands/fixmystreet.com/layout.scss
+++ b/web/cobrands/fixmystreet.com/layout.scss
@@ -70,15 +70,13 @@ h3, h4 {
#front-main {
background: $primary url(images/tile-y.jpg);
}
-#main-nav {
- ul#main-menu {
- li {
- a:hover {
- @include background(linear-gradient(#000, #444 10%, #444 95%, #111));
- }
- }
+
+.nav-menu--main {
+ a:hover {
+ @include background(linear-gradient(#000, #444 10%, #444 95%, #111));
}
}
+
.nav-wrapper {
.nav-wrapper-2 {
border-image-source: url(images/tile-y-border.jpg);
@@ -94,11 +92,9 @@ body.mappage {
}
}
-#main-nav {
- ul#mysoc-menu {
- background: #515151;
- margin-top: -4px;
- }
+.nav-menu--mysoc {
+ background: #515151;
+ margin-top: -4px;
}
body.twothirdswidthpage,
@@ -215,18 +211,12 @@ body.twothirdswidthpage {
margin: 0 auto;
background: $base_bg;
ul {
- list-style: none;
- padding: 0px;
- margin: 0px;
+ @include list-reset-soft;
float: $left;
li {
- list-style: none;
display: inline;
- margin: 0px;
- padding: 0px;
float: $left;
- a,
- span {
+ a, span {
display: block;
color: $nav_fg;
background: none;
diff --git a/web/cobrands/greenwich/base.scss b/web/cobrands/greenwich/base.scss
index e4561e338..2e886c492 100644
--- a/web/cobrands/greenwich/base.scss
+++ b/web/cobrands/greenwich/base.scss
@@ -29,11 +29,6 @@ body.frontpage #site-logo,
background-size: cover;
}
-
-#mysoc-menu {
- display: none;
-}
-
.issue-list-a li, .list-a li, #user-meta p, #front-main #postcodeForm {
background: $greenwich_light_grey;
}
diff --git a/web/cobrands/greenwich/layout.scss b/web/cobrands/greenwich/layout.scss
index 8d57949a0..df5437968 100644
--- a/web/cobrands/greenwich/layout.scss
+++ b/web/cobrands/greenwich/layout.scss
@@ -92,7 +92,7 @@ body.twothirdswidthpage #user-meta p {
border-top: none;
}
-#main-menu {
+.nav-menu--main {
display: none;
}
@@ -178,7 +178,7 @@ body.mappage {
display: none;
}
- #main-menu {
+ .nav-menu--main {
display: block;
}
@@ -198,20 +198,15 @@ body.mappage {
border-bottom: solid 4px $primary;
}
- #main-nav {
- ul#main-menu {
- li a.report-a-problem-btn {
- color: $nav_fg;
- }
+ .nav-menu--main a.report-a-problem-btn {
+ color: $nav_fg;
+ }
+ .nav-menu {
+ a, span {
+ color: $primary_text;
}
-
- ul li {
- a, span {
- color: $primary_text;
- }
- a:hover {
- text-decoration: underline;
- }
+ a:hover {
+ text-decoration: underline;
}
}
}
diff --git a/web/cobrands/harrogate/base.scss b/web/cobrands/harrogate/base.scss
index 576b640bd..b546ae060 100644
--- a/web/cobrands/harrogate/base.scss
+++ b/web/cobrands/harrogate/base.scss
@@ -28,33 +28,17 @@ body.frontpage #site-logo,
}
}
-#main-nav ul#main-menu li {
-
+.nav-menu--main {
// blue button background, darker if selected
- background: #ededed;
- &.menu-item-selected {
- background: $primary;
- span {
- color: #fff;
- }
+ a {
+ background: #ededed;
}
-
span {
- color: $nav_fg;
+ color: #fff;
+ background: $primary;
}
}
-#main-nav ul#main-menu li,
-body.mappage #main-nav ul#main-menu li,
-{
- padding-left: 0.25em;
- padding-right: 0.25em;
- padding-top: 0;
- padding-bottom: 0;
-
- a { padding: 0 }
-}
-
label[for=form_INFO_TEXT] {
background: yellow;
border: solid 1px black;
diff --git a/web/cobrands/harrogate/layout.scss b/web/cobrands/harrogate/layout.scss
index dba7ed5b0..417eff539 100644
--- a/web/cobrands/harrogate/layout.scss
+++ b/web/cobrands/harrogate/layout.scss
@@ -85,38 +85,23 @@ body.twothirdswidthpage form.full-width {
margin: 0;
}
-body.mappage #main-nav {
- ul#main-menu {
- padding: 1em 0;
- }
-}
-body.mappage #main-nav ul#main-menu li a, body.mappage #main-nav ul#main-menu li span {
- padding: 0.75em;
+.nav-menu--main {
+ background: #ededed;
}
-body.mappage #main-nav ul#main-menu li a.report-a-problem-btn,
-#main-nav ul#main-menu li a.report-a-problem-btn {
- margin: 0;
- padding: 0.75em;
+.nav-menu--main span {
+ color: #fff;
+ background: $primary;
}
-#main-nav ul#main-menu li a.report-a-problem-btn {
- &:hover {
- background: #444;
- color: #fff;
- @include border-radius(0em);
- }
+
+.nav-menu--main a, .nav-menu--main span,
+body.mappage .nav-menu--main a, body.mappage .nav-menu--main span {
+ padding: 0.75em 1.02em;
}
-#main-nav {
- ul#main-menu {
- li {
- a.report-a-problem-btn {
- color: #000;
- background: #ededed;
- }
- }
- }
+body.mappage .nav-menu--main {
+ margin-top: 1em;
}
body.mappage .nav-wrapper .nav-wrapper-2 {
diff --git a/web/cobrands/oxfordshire/base.scss b/web/cobrands/oxfordshire/base.scss
index 2f297582c..8f28905e2 100644
--- a/web/cobrands/oxfordshire/base.scss
+++ b/web/cobrands/oxfordshire/base.scss
@@ -25,7 +25,7 @@
height: 60px; // to match #site-header
}
-#main-nav ul#mysoc-menu li a#mysoc-logo {
+#mysoc-logo {
background-image: none;
text-indent: 0;
img {
diff --git a/web/cobrands/sass/_base.scss b/web/cobrands/sass/_base.scss
index 15e26eddd..fe4e15bcd 100644
--- a/web/cobrands/sass/_base.scss
+++ b/web/cobrands/sass/_base.scss
@@ -492,48 +492,42 @@ p.label-valid {
}
-#main-nav{
- ul{
- @include list-reset-soft;
- li{
- a, span {
- display: block;
- padding: 0.5em 1em;
- background:#f6f6f6;
- color:#333;
- font-size: 1.25em;
- border-bottom: 0.25em solid #333;
- }
- a:hover, span.hover {
- background: #333;
- color:#fff;
- text-decoration: none;
- }
- span {
- background-color: #ccc;
- }
- }
- &#mysoc-menu{
- li {
- a {
- color: $primary_text;
- background: $primary;
- &#mysoc-logo {
- background-origin: content-box;
- background-position: $left 3px;
- background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAYCAYAAAArrNkGAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABBtJREFUaN7tmT2u1DAQx/cIPgBCQUJCICH5BuQIPkIq6hzBB0AyiAP4ABQ5ghtEm54mEtVrICUNkpmsJjBvdvyR1S7hPa2lv1aJs5PEP894xjkc/tMWY+xADhRQA8iC9I7PtD6PP9xa9aC1oCnmm9lpgtHW3WiVB03HuqYeA9DlPZbJuXj8o5wgGM5os+ixLb74MeTt+Hz+kiGXva99jEDjJV7w+5Pn3aIHNoEvB/Tu7s6iejzuQAEUQRPIgxT2KTwesX+5rkvYs7yP2KDXLN7XXCKkAUgHiii3MaQuideI9x/x2GB/gxFjVZMIoY6AmtBGJ+QJluUKgdheI1LpfveuoQMciTw7XrUAbEFzot8Re4GcnwWghv23Ezx0PiejBYiBAA0/Pz7VoOV3AKnEup1LwhyBQFsr2Jkzdjy51hZyBIuwaOuFZ6fPPaaA5jQX+hvi4fS8YUC9BBzXqJOB4INXAGpAM8oAxBEUUbYSQiCD1ZWACnZGhDJIUacGaBbY34ghAxfAdHheCxBHAs6yvp7YpP/zDOgk9WHIGhMvOZ5TrjCgfUUSptigqQqg1M7A7kHhTVvWUAF8Q/r6ZObPQy4bfMf62wycoeSFOEmoPS2sQ74mdFUC1RhuHQ25QonkKurjE6CCpzTC+9CmNwBNeiHz/oGvabnweG+9E9ZDul6GDDiD53tybsoMYIMJhhQSjy/28YVzoAgKoGRt+uvHMwUaQRHkS7N/I1AjhGuuGs+2ifsOPOwKk6TLAeUe2J4DFPtG7vnsnK3MQPngTwg0ErUZoC3CPEqyWbmDJQG1cVvbCpRPmIadm6Wy5VpAeXKkpCRqQ1F/DwBAnAlQnQHaEKDzlYGGgvQWoEJy1LOx8P8SqOLJEU2uNhbhvQC0AVn76n3/9vWHpIe++/Km/fxVL17aL3ATSYU5E2h77rbkBqA2kYFHsbS7FlAhOTrJpIXwkirYRynMAEgDiignwHSgiGozCceUg5EBqs5N2hhQX8gnpDaldoquCVQn6lmV2foLbJdkSmWkANESoNPLT98UyKMUgbnIFsqWGRMxQ0JbW1G2eCHsdmQferWlMwlPxHuLnwiFa9NefU2gQiJ0UholBixm6lGV8lAEGVFDykMr6l5e5OeA1tg5ASB8wcmVMEa4rtkLqM3VnqQuDJnBmHnhT6A2oKPNBSIFuq6hoCbzCatY91Zs/ZXspED5Ws+rDu0IbZUSEps//YmQuvbrCg8NFd8I1zBl8bd66w8galBA6Q3rmWKb3YZlpIqE0Da13pLrVjtd6flxMtP7qorvse1hjyYkRfs8yMP/8E83WMIeII2wdrobnk0gG6HOnUu7WteAqRKf39QN0yagTlhf9/lwz9fNG8yzgBrmmWa3h8Ftv0HaQLi1TYlaSGX3UvsNzdBKw+waoEEAAAAASUVORK5CYII=');
- background-repeat:no-repeat;
- text-indent:-999999px;
- }
- }
- }
- }
+.nav-menu {
+ @include list-reset-soft;
+ a, span {
+ display: block;
+ padding: 0.5em 1em;
+ background: #f6f6f6;
+ color: #333;
+ font-size: 1.25em;
+ border-bottom: 0.25em solid #333;
+ }
+ a:hover, span.hover {
+ background: #333;
+ color: #fff;
+ text-decoration: none;
+ }
+ span {
+ background: #ccc;
}
}
-.ie6 #main-nav ul#mysoc-menu li a#mysoc-logo {
+.nav-menu--mysoc {
+ a {
+ color: $primary_text;
+ background: $primary;
+ }
+}
+#mysoc-logo {
+ background-origin: content-box;
+ background-position: $left 3px;
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAYCAYAAAArrNkGAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABBtJREFUaN7tmT2u1DAQx/cIPgBCQUJCICH5BuQIPkIq6hzBB0AyiAP4ABQ5ghtEm54mEtVrICUNkpmsJjBvdvyR1S7hPa2lv1aJs5PEP894xjkc/tMWY+xADhRQA8iC9I7PtD6PP9xa9aC1oCnmm9lpgtHW3WiVB03HuqYeA9DlPZbJuXj8o5wgGM5os+ixLb74MeTt+Hz+kiGXva99jEDjJV7w+5Pn3aIHNoEvB/Tu7s6iejzuQAEUQRPIgxT2KTwesX+5rkvYs7yP2KDXLN7XXCKkAUgHiii3MaQuideI9x/x2GB/gxFjVZMIoY6AmtBGJ+QJluUKgdheI1LpfveuoQMciTw7XrUAbEFzot8Re4GcnwWghv23Ezx0PiejBYiBAA0/Pz7VoOV3AKnEup1LwhyBQFsr2Jkzdjy51hZyBIuwaOuFZ6fPPaaA5jQX+hvi4fS8YUC9BBzXqJOB4INXAGpAM8oAxBEUUbYSQiCD1ZWACnZGhDJIUacGaBbY34ghAxfAdHheCxBHAs6yvp7YpP/zDOgk9WHIGhMvOZ5TrjCgfUUSptigqQqg1M7A7kHhTVvWUAF8Q/r6ZObPQy4bfMf62wycoeSFOEmoPS2sQ74mdFUC1RhuHQ25QonkKurjE6CCpzTC+9CmNwBNeiHz/oGvabnweG+9E9ZDul6GDDiD53tybsoMYIMJhhQSjy/28YVzoAgKoGRt+uvHMwUaQRHkS7N/I1AjhGuuGs+2ifsOPOwKk6TLAeUe2J4DFPtG7vnsnK3MQPngTwg0ErUZoC3CPEqyWbmDJQG1cVvbCpRPmIadm6Wy5VpAeXKkpCRqQ1F/DwBAnAlQnQHaEKDzlYGGgvQWoEJy1LOx8P8SqOLJEU2uNhbhvQC0AVn76n3/9vWHpIe++/Km/fxVL17aL3ATSYU5E2h77rbkBqA2kYFHsbS7FlAhOTrJpIXwkirYRynMAEgDiignwHSgiGozCceUg5EBqs5N2hhQX8gnpDaldoquCVQn6lmV2foLbJdkSmWkANESoNPLT98UyKMUgbnIFsqWGRMxQ0JbW1G2eCHsdmQferWlMwlPxHuLnwiFa9NefU2gQiJ0UholBixm6lGV8lAEGVFDykMr6l5e5OeA1tg5ASB8wcmVMEa4rtkLqM3VnqQuDJnBmHnhT6A2oKPNBSIFuq6hoCbzCatY91Zs/ZXspED5Ws+rDu0IbZUSEps//YmQuvbrCg8NFd8I1zBl8bd66w8galBA6Q3rmWKb3YZlpIqE0Da13pLrVjtd6flxMtP7qorvse1hjyYkRfs8yMP/8E83WMIeII2wdrobnk0gG6HOnUu7WteAqRKf39QN0yagTlhf9/lwz9fNG8yzgBrmmWa3h8Ftv0HaQLi1TYlaSGX3UvsNzdBKw+waoEEAAAAASUVORK5CYII=');
+ background-repeat: no-repeat;
+ text-indent: -999999px;
+}
+.ie6 #mysoc-logo {
background: url('/cobrands/fixmystreet/images/ie_mysoc_logo.gif') center no-repeat;
}
-.ie7 #main-nav ul#mysoc-menu li a#mysoc-logo {
+.ie7 #mysoc-logo {
background: url($image-sprite) -240px -38px no-repeat;
}
diff --git a/web/cobrands/sass/_layout.scss b/web/cobrands/sass/_layout.scss
index cc4cfadf2..806f1408c 100644
--- a/web/cobrands/sass/_layout.scss
+++ b/web/cobrands/sass/_layout.scss
@@ -128,90 +128,80 @@ h1 {
display: none;
}
-#main-nav{
+#main-nav {
margin: 0 auto;
- padding: 0em;
+ padding: 0;
width: 60em;
- ul{
- list-style: none;
- padding: 0px;
- margin: 0px;
- float: $right;
- li{
- list-style: none;
- display: inline;
- margin: 0px;
- padding: 0px;
- float: $left;
- a,
- span {
- display: block;
- color: $nav_fg;
- background: none;
- border-bottom: none;
- }
- &#top-nav-privacy {
- display: none;
- }
- }
- &#main-menu{
- li{
- a, span{
- padding: 0.75em;
- font-size: 0.9em;
- }
- a:hover{
- background: $nav_fg_hover;
- }
- a.report-a-problem-btn {
- color: $primary_text;
- background: $primary;
- padding:0.25em;
- margin:0.5em;
- @include border-radius(0.25em);
- &:hover {
- background:$primary/1.1;
- }
- }
- span {
- color:$primary;
- }
- }
+}
+.nav-menu {
+ float: $right;
+ li {
+ display: inline;
+ float: $left;
+ }
+ li.nav-menu__item--privacy {
+ display: none;
+ }
+ a, span {
+ display: block;
+ color: $nav_fg;
+ background: none;
+ border-bottom: none;
+ }
+}
+.nav-menu--main {
+ a, span {
+ padding: 0.75em;
+ font-size: 0.9em;
+ }
+ a:hover {
+ background: $nav_fg_hover;
+ }
+ a.report-a-problem-btn {
+ color: $primary_text;
+ background: $primary;
+ padding:0.25em;
+ margin:0.5em;
+ @include border-radius(0.25em);
+ &:hover {
+ background:$primary/1.1;
}
- &#mysoc-menu{
- padding: 0em 0.5em;
- margin-#{$left}: 0.25em;
- background: $primary;
- @include border-radius(0 0 0.375em 0.375em);
- li{
- a{
- background:none;
- color: $primary_text;
- text-transform: uppercase;
- font-size: 0.6875em;
- padding: 1.3em 0.7em 1em;
- &#mysoc-logo {
- width:84px;
- height:16px;
- background-size: 100px auto;
- background-position: -8px 0px;
- opacity: 0.8;
- &:hover {
- opacity: 1;
- }
- }
- &:hover{
- color:#fff;
- }
- }
- }
+ }
+ span {
+ color:$primary;
+ }
+}
+.nav-menu--mysoc {
+ padding: 0em 0.5em;
+ margin-#{$left}: 0.25em;
+ background: $primary;
+ @include border-radius(0 0 0.375em 0.375em);
+ a {
+ background:none;
+ color: $primary_text;
+ text-transform: uppercase;
+ font-size: 0.6875em;
+ padding: 1.3em 0.7em 1em;
+ &:hover {
+ color: #fff;
+ background: none;
}
}
}
-.ie8 #main-nav ul#mysoc-menu li a#mysoc-logo {
+#mysoc-logo {
+ width:84px;
+ height:16px;
+ background-size: 100px auto;
+ background-position: -8px 0px;
+ opacity: 0.8;
+ &:hover {
+ opacity: 1;
+ }
+}
+.ie8 #mysoc-logo {
width: 100px;
}
-.ie7 #main-nav ul#mysoc-menu li a#mysoc-logo {
+.ie7 #mysoc-logo {
background-position: -260px -43px;
}
@@ -256,12 +246,11 @@ body.mappage {
margin-#{$right}: 1em;
}
- #main-nav ul#main-menu li a,
- #main-nav ul#main-menu li span {
+ .nav-menu--main a, .nav-menu--main span {
padding: 1.4em 0.75em 1.35em;
}
- #main-nav ul#main-menu li a.report-a-problem-btn {
+ .nav-menu--main a.report-a-problem-btn {
padding: 0.5em;
margin: 0.9em 0.25em 0.85em;
}
@@ -1133,7 +1122,7 @@ body.frontpage {
padding-#{$left}: 180px;
}
- html #main-nav ul#mysoc-menu li a#mysoc-logo {
+ #mysoc-logo {
width: 16px;
// Just the mySociety circle logo
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABJ9JREFUeNqsVXlMHFUYf/Pe7O7M7E2Xw6UFWg5LQ1GTosa0IT00wYbGaKoltWnaRGNrjIptiUalXqlJU9RU0fSPHtqCR20pliBpQpAmxQgoLDeLQIEuh2WBndmDnZn3fMvRsqEGVv0mv3lzvPd97/u97wBgmXLUbHvOFZ/cJK1KbTtmiX4F/J+ySzBuDiakeSdWphA3RSAhTX3NaN2znLVwyQkMA/YbzAcwAAIFIBSYELjPYH6Zpf9CwrEMeGS1zhalh2zEBkIq2NCdkDvfyOxCRqHfnnpIWN9caK+5URDX2VJob8zfZsqJyIBKlVzweU7pIMIC3TFHIUAISkSx2GKE2uK8qNK0ODZbVsgKuwllnthp/S4rUZs0vx4th0dHcLp3FCv1VogEL8G9Jz2THx4Tx79+Yh23/oVs4zuBwKx3CuWQ5aHO5VYba7oDDjDj/TJEpSgWJytD0FAP5Dm6PD4ySZmSIUM0+C6DoGdUdkXkwULBC56HJtRJuxFpsu7nsll60CwHQY3D/8PRq1NFQZXg+TP8TwKphhc3GXPS4zWP9tySm07XSZe9MgkLEpCuX5uZZdqQBwEM1nsaStq87V3/xtjGTVzKB29bj0RZkK2s3PvTJ59PnWG2Rm3esTP2mW80gDUByq+CFffJoS+2tkrtTZEoz80R1pVfjrsBEGMGCvWAQ+DsV5MFcLstp0jFqsmH/cCn+qjLMGqLdcvrcOkIDpO9eYY9QMuYVRED1U8A8Sjg6Vz9AahH+mi84OhCzwISbAwT8fFoFr6EjlgvMAh2eDtP85AP7XwGHORAi9R6USVqRNrPlUqlIEgCSM8ApGMAtCBw/nvpLGqR2qoFxIMYbUwCJvh2tbv6oyt/lX8Z6fa7e+Thdsd0bdpa7QqvF49UlPmKXz0y/vEdHqyshaeDH2lNNoPGmhlUfQMuydmzHOX2VENMTKKQ0OMQu6Qxv8hqaLDMhWoY0VlxuXkPx24vZhhooa/elts1hddvfXsCE/yPyrftTdj15ME1n3J6FOsTlbFrZwbeqDrVdz4sD0Ji41fan019q1MF2Ego/wy9NIjDl5zHM1xeZ8e9lMenGuIPl2zoIIAxqjIGiO4cIeg/vrs+fbBDvBlWi3RISKF5YCQYz5XkGRchx+rT6djBpzyYaM3Zl0ftaqd++fGSt7m2NTqBT9dwyOgXldmaRWnRcgyflGnKWGTAr0hOTFQPjSQTHWciihCCJd9IM/fAxuTV712shTreHppreXz3of739+dMDFW1E0wUBjIsHQGt4gDT8BtsF52L+oE74BquH7l6kFIzoYE6agBJv49V5o/JI39G5750mNFydlWaAiHQOca45/Pfvdk17bp2ur+AM6CAYGKBlkdyQ+Xom4OdYve83rBy3Tj284U+T/N1njUmBVTf0Lh/qBdABDQ2+31Elu8mkaoAyAsxgHbIK5/1FnX9NlmVmGFa0/vHVL+zYaJloc5F/cAdGB4AIIT51FaBWFdRps94bIciB2ZaJ+T1wNf2azmYS8bOOndbCPcKhGX1g0BfqwPpzUS3Ki0ZanVeT13FuZHiQ4UkOK0stfZvAQYA/wr53nPx8cUAAAAASUVORK5CYII=);
diff --git a/web/cobrands/stevenage/layout.scss b/web/cobrands/stevenage/layout.scss
index eb62cf7c4..49529dd49 100644
--- a/web/cobrands/stevenage/layout.scss
+++ b/web/cobrands/stevenage/layout.scss
@@ -40,33 +40,29 @@
#main-nav {
ul {
float: none;
- li {
- a, span {
- margin: 0;
- margin-right: 2px;
- font-family: 'PTSansRegular', "PT Sans", Verdana, Arial, sans-serif;
- }
- }
- &#main-menu {
- li {
- a, span {
- padding: 0.5em 0.75em;
- font-size: 0.8em;
- margin: 0;
- @include border-radius(0.25em);
- }
- a.report-a-problem-btn {
- padding:0.5em 0.75em;
- margin:0;
- margin-left: 0.25em;
- color:#fff;
- }
- span {
- color: #fff;
- background-color: #066539;
- }
- }
- }
+ }
+}
+.nav-menu a, .nav-menu span {
+ margin: 0;
+ margin-right: 2px;
+ font-family: 'PTSansRegular', "PT Sans", Verdana, Arial, sans-serif;
+}
+.nav-menu--main {
+ a, span {
+ padding: 0.5em 0.75em;
+ font-size: 0.8em;
+ margin: 0;
+ @include border-radius(0.25em);
+ }
+ a.report-a-problem-btn {
+ padding:0.5em 0.75em;
+ margin:0;
+ margin-left: 0.25em;
+ color:#fff;
+ }
+ span {
+ color: #fff;
+ background-color: #066539;
}
}
@@ -88,10 +84,10 @@ body.mappage {
margin-top: 9em;
}
// 15591af7 - Stevenage Map page changes
- #main-nav ul#main-menu li a, #main-nav ul#main-menu li span {
+ .nav-menu--main a, .nav-menu--main span {
padding: 0.5em 0.75em;
}
- #main-nav ul#main-menu li a.report-a-problem-btn {
+ .nav-menu--main a.report-a-problem-btn {
padding: 0.5em 0.75em;
margin: 0 0 0 0.25em;
}
diff --git a/web/cobrands/zerotb/layout.scss b/web/cobrands/zerotb/layout.scss
index ea8102ded..c8afa3abc 100644
--- a/web/cobrands/zerotb/layout.scss
+++ b/web/cobrands/zerotb/layout.scss
@@ -31,16 +31,10 @@ body {
}
}
&.mappage {
- #main-nav {
- ul#main-menu {
- li {
- a,
- a.report-a-problem-btn,
- span {
- padding: 0.25em;
- margin: 0.5em;
- }
- }
+ .nav-menu--main {
+ a, a.report-a-problem-btn, span {
+ padding: 0.25em;
+ margin: 0.5em;
}
}
.nav-wrapper-2 {
@@ -56,21 +50,11 @@ body {
}
}
-#main-nav {
- ul#mysoc-menu {
- li {
- a {
- color: $primary_text;
- }
- }
- }
- ul#main-menu {
- li {
- span {
- color: $primary_text;
- }
- }
- }
+.nav-menu--mysoc a {
+ color: $primary_text;
+}
+.nav-menu--main span {
+ color: $primary_text;
}
#site-header {
diff --git a/web/cobrands/zurich/layout.scss b/web/cobrands/zurich/layout.scss
index f25870a48..d22d753ca 100644
--- a/web/cobrands/zurich/layout.scss
+++ b/web/cobrands/zurich/layout.scss
@@ -187,13 +187,6 @@ body.mappage {
}
body.mappage {
- #main-nav {
- width: auto;
- }
- #main-nav ul#main-menu li a,
- #main-nav ul#main-menu li span {
- padding: 0.75em;
- }
#zurich-footer {
display: none;
}
diff --git a/web/down.default.html b/web/down.default.html
index a4f58e15a..d3403d76c 100644
--- a/web/down.default.html
+++ b/web/down.default.html
@@ -90,7 +90,7 @@
<div class="nav-wrapper">
<div class="nav-wrapper-2">
<div id="main-nav" role="navigation">
- <ul id="mysoc-menu">
+ <ul class="nav-menu nav-menu--mysoc">
<li><a id="mysoc-logo" href="https://www.mysociety.org/">mySociety</a></li>
</ul>
</div>