From dcea8fdb0fd098cc179e7495842f599bd4a9d316 Mon Sep 17 00:00:00 2001 From: Dave Arter Date: Tue, 31 Mar 2015 16:35:28 +0100 Subject: [Greenwich] Royal Borough of Greenwich front end --- perllib/FixMyStreet/Cobrand/Greenwich.pm | 47 ++++ templates/web/greenwich/around/intro.html | 7 + templates/web/greenwich/faq/faq-en-gb.html | 134 ++++++++++ templates/web/greenwich/footer.html | 44 +++ .../web/greenwich/front/footer-marketing.html | 31 +++ templates/web/greenwich/header_logo.html | 29 ++ web/cobrands/greenwich/_colours.scss | 24 ++ web/cobrands/greenwich/_fonts.scss | 3 + web/cobrands/greenwich/base.scss | 89 +++++++ web/cobrands/greenwich/bcArrow.gif | Bin 0 -> 1166 bytes web/cobrands/greenwich/config.rb | 25 ++ web/cobrands/greenwich/layout.scss | 295 +++++++++++++++++++++ web/cobrands/greenwich/logo-mobile.gif | Bin 0 -> 5252 bytes web/cobrands/greenwich/logo.gif | Bin 0 -> 2742 bytes web/cobrands/greenwich/mastWave.gif | Bin 0 -> 17255 bytes web/cobrands/greenwich/tab-red.png | Bin 0 -> 2044 bytes 16 files changed, 728 insertions(+) create mode 100644 perllib/FixMyStreet/Cobrand/Greenwich.pm create mode 100644 templates/web/greenwich/around/intro.html create mode 100644 templates/web/greenwich/faq/faq-en-gb.html create mode 100644 templates/web/greenwich/footer.html create mode 100644 templates/web/greenwich/front/footer-marketing.html create mode 100644 templates/web/greenwich/header_logo.html create mode 100644 web/cobrands/greenwich/_colours.scss create mode 100644 web/cobrands/greenwich/_fonts.scss create mode 100644 web/cobrands/greenwich/base.scss create mode 100644 web/cobrands/greenwich/bcArrow.gif create mode 100644 web/cobrands/greenwich/config.rb create mode 100644 web/cobrands/greenwich/layout.scss create mode 100644 web/cobrands/greenwich/logo-mobile.gif create mode 100644 web/cobrands/greenwich/logo.gif create mode 100644 web/cobrands/greenwich/mastWave.gif create mode 100644 web/cobrands/greenwich/tab-red.png diff --git a/perllib/FixMyStreet/Cobrand/Greenwich.pm b/perllib/FixMyStreet/Cobrand/Greenwich.pm new file mode 100644 index 000000000..96baf021e --- /dev/null +++ b/perllib/FixMyStreet/Cobrand/Greenwich.pm @@ -0,0 +1,47 @@ +package FixMyStreet::Cobrand::Greenwich; +use parent 'FixMyStreet::Cobrand::UKCouncils'; + +use strict; +use warnings; + +sub council_id { return 2493; } +sub council_area { return 'Greenwich'; } +sub council_name { return 'Greenwich Borough Council'; } +sub council_url { return 'greenwich'; } + +sub example_places { + return ( 'SE18 6HQ', "Woolwich Road" ); +} + +sub enter_postcode_text { + my ($self) = @_; + return 'Enter a Royal Greenwich postcode, or street name and area'; +} + +sub disambiguate_location { + my $self = shift; + my $string = shift; + + my $town = 'Greenwich'; + + # as it's the requested example location, try to avoid a disambiguation page + $town .= ', SE10 0EF' if $string =~ /^\s*woolwich\s+r(?:oa)?d\s*(?:,\s*green\w+\s*)?$/i; + + return { + %{ $self->SUPER::disambiguate_location() }, + town => $town, + centre => '51.4743770385684,0.0555696523982184', + span => '0.089851200483885,0.150572372434415', + bounds => [ 51.423679096602, -0.0263872255863898, 51.5135302970859, 0.124185146848025 ], + }; +} + +sub pin_colour { + my ( $self, $p, $context ) = @_; + return 'grey' if $p->state eq 'not responsible'; + return 'green' if $p->is_fixed || $p->is_closed; + return 'red' if $p->state eq 'confirmed'; + return 'yellow'; +} + +1; diff --git a/templates/web/greenwich/around/intro.html b/templates/web/greenwich/around/intro.html new file mode 100644 index 000000000..81c0b55df --- /dev/null +++ b/templates/web/greenwich/around/intro.html @@ -0,0 +1,7 @@ +

[% loc('Report a street cleaning or parks issue in Royal Greenwich') %]

+

+ Use this form for reporting cleaning problems on streets and parks in Greenwich, such as littering, flytipping, graffiti or overflowing bins. +

+

+ To report other kinds of road and street problems like potholes, blocked drains, faulty street lamps or cracks in the pavement, please pick from our list of additional reporting forms. +

diff --git a/templates/web/greenwich/faq/faq-en-gb.html b/templates/web/greenwich/faq/faq-en-gb.html new file mode 100644 index 000000000..f143581d6 --- /dev/null +++ b/templates/web/greenwich/faq/faq-en-gb.html @@ -0,0 +1,134 @@ +[% INCLUDE 'header.html', title = 'Help', bodyclass = 'twothirdswidthpage' %] + + + +

Frequently Asked Questions

+ +

These pages are for reporting things which are broken, dirty, damaged or +dumped, and need fixing, cleaning or clearing:

+ +

+ Note that though most of these services are provided by the Royal Borough of Greenwich, + FixMyStreet will forward some categories of issue to Transport for London (TfL). +

+ +
+
Reporting emergencies (Out of Hours)
+
+

Please do not report problems which present an immediate risk to life, + for example missing manhole covers or a fallen lamp column.

+

Issues reported via the website are only actioned during office hours. + If you require an Out of Hours service please ring our main number + 020 8854 8888 and a message will direct you to the relevant Out of Hours + service.

+ +
+ +
How do I report a problem here?
+
After entering a postcode or location, you are shown +a map of that area. You can view problems already reported in that area, +or report ones of your own by clicking on the map at the location of +the problem.
+
How are the problems solved?
+
They are reported directly to us so we can then resolve the problem. + You can also discuss the problem on the website with others if you wish.
+ +
Do you remove silly or illegal content?
+
Royal Borough of Greenwich and FixMyStreet are 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.
+ +
Can I use FixMyStreet on my mobile?
+
+

The FixMyStreet website will already work on your mobile phone, adapting to + the size of your screen automatically. Using an app has some advantages, though + — for example, you can create a report even when you have no network + connection. +

+
+ +
Can I use these pages to report problems outside of the Royal Borough of Greenwich district? +
Yes, if you enter a postcode or address outside the borough you will be re-directed to the main FixMyStreet site that will enable you to report problems elsewhere. FixMyStreet will forward these on to the relevant council.
+ +
The site is powered by FixMyStreet, who are they?
+
FixMyStreet was built by mySociety, in conjunction with the Young Foundation. +mySociety is the project of a registered charity which has grown out of the community of +volunteers who built sites like TheyWorkForYou. +mySociety’s primary mission is to build Internet projects which give people simple, tangible +benefits in the civic and community aspects of their lives. +The charity is called UK Citizens Online Democracy and is charity number 1076346. mySociety +can be contacted by email at hello@mysociety.org, +or by post at mySociety, 483 Green Lanes, London, N13 4BS.
+ +
Why does the site use kilometres for measurements?
+
The British national + grid reference system, devised by Ordnance Survey (the British national + mapping agency) around the time of the second world war, uses eastings and + northings measured in metres and kilometres; the maps we use are from + Ordnance Survey and so this is what we use to display distances. + There you have it: not everything British is in miles!
+ +
Why can’t I zoom out more on the reporting map?
+
We want to keep reports locally focused, so we 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.
+ +
I’d like a site like this for my own location/ where’s the "source code" to this site?
+
+The mySociety software behind this site is open source, and available +under the GNU Affero GPL software license. You can download the +source code and help mySociety develop it. +You’re welcome to use it in your own projects, although you must also +make available the source code to any such projects. +Fiksgatami is an example of our code +being used in a Norwegian version of this site. +
+ +
+ +

Privacy Questions

+ +
+
Who gets to see my email address?
+
+

If you submit a problem, your details, and details of the problem, will be +submitted to the Royal Borough of Greenwich, or TfL, as +appropriate. Other than the council, only people we authorise to view the +FixMyStreet administration interface will be able to see your email address and +they will never use it for anything other than to help administer +FixMyStreet.

+

We will never give or sell your email address to anyone else, unless we are +obliged to by law. Your name will not be published anywhere unless you let us.

+
+ +
What emails will you send to me?
+
We will email you when we have received your report, and when it has + been investigated and actioned. We will only send you emails that + relate to an issue you have reported.
+ +
+ +[% INCLUDE 'footer.html' pagefooter = 'yes' %] diff --git a/templates/web/greenwich/footer.html b/templates/web/greenwich/footer.html new file mode 100644 index 000000000..31ab35f52 --- /dev/null +++ b/templates/web/greenwich/footer.html @@ -0,0 +1,44 @@ + [% IF pagefooter %] + + [% END %] + + + [% IF c.cobrand.moniker == 'fixmystreet' AND bodyclass != 'mappage' %] + [% INCLUDE 'footer-nav.html' %] + [% END %] + + + + + + + + [% TRY %][% PROCESS 'footer_extra.html' %][% CATCH file %][% END %] + + + diff --git a/templates/web/greenwich/front/footer-marketing.html b/templates/web/greenwich/front/footer-marketing.html new file mode 100644 index 000000000..66a75b5cc --- /dev/null +++ b/templates/web/greenwich/front/footer-marketing.html @@ -0,0 +1,31 @@ +
+
+ + + +
+ + diff --git a/templates/web/greenwich/header_logo.html b/templates/web/greenwich/header_logo.html new file mode 100644 index 000000000..fa279bdc4 --- /dev/null +++ b/templates/web/greenwich/header_logo.html @@ -0,0 +1,29 @@ + + +