aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
Commit message (Collapse)AuthorAgeLines
* [fixmystreet.com] Remove friendly A/B test.Matthew Somerville2017-03-16-21/+0
| | | | This has been running for a year, added in e17eb20.
* [fixmystreet.com] Add Content-Security-Policy.Matthew Somerville2016-08-16-0/+7
|
* Make sure map JS works through an admin proxy.Matthew Somerville2016-07-04-4/+0
| | | | | Tidy up use of absolute URLs when in the admin. Have the 404 handler spot static files in admin as a fallback.
* Remove stringify call from template pathsDave Arter2016-06-15-2/+2
|
* [UK Councils] Send correct confirm emails for updatesDave Arter2016-06-15-0/+7
| | | | | | | | | | | | | | | | | | | | | | Some UK councils with Open311 integrations (e.g. Bromley) have a custom wording in the confirmation email sent when updates are left on reports, to make the user aware that the update is sent to the council in question. Bromley noticed that some emails were being sent without this wording, leading at least one user to contact the council directly about the report. It turns out that although the email template contains an IF clause to use the appropriate wording for Bromley (and Stevenage) reports, the incorrect template file was being used when updates were made via the Bromley cobrand. This commit solves the problem by introducing a new `Cobrand::Default::path_to_email_templates` method, which is overridden by `Cobrand::UKCouncils` to include the `templates/email/fixmystreet` path. Paths returned by this method are used as the `additional_template_paths` param when templating emails. A regression test is included. Additionally moves email templates for fixmystreet.com to a directory name reflecting their purpose, in the same way the web templates are arranged.
* Remove final web/fixmystreet templates.Matthew Somerville2016-04-20-1/+0
| | | | And associated, e.g. nothing references fixmystreet-old-box.js any more.
* [fixmystreet.com] Move country lookup client side.Matthew Somerville2016-03-31-8/+0
| | | | | There's no need for the IP->country lookup, only used in JavaScript to display a banner, to require a call to the FixMyStreet server.
* [fixmystreet.com] Friendly A/B test setup.Zarino Zappia2016-03-11-0/+21
| | | | | | | | Includes a smiley, bright yellow homepage, and updated nav bar and footer across the entire site; a few content changes; request for gender information from users. Fixes #1341.
* Factor out all uses of param()/params.Matthew Somerville2015-07-07-3/+3
| | | | | | | Use a central get_param and get_param_list functions dependent on whether we're after a scalar or a list (almost always a scalar). This prevents any possibility of confusion where param() could return a list, or params->{} an arrayref.
* Version 1.5.2.v1.5.2Matthew Somerville2014-12-17-0/+3
| | | | | | | Includes: * [UK] Don't show topic form field when reporting abuse. * Use token in moderation response URL to prevent hidden report leak. * Make sure successful submission page is full width.
* Move UK-specific text to separate templates.Matthew Somerville2014-07-08-0/+9
|
* Display a banner to non UK FixMyStreet visitorsStruan Donald2014-07-03-0/+8
| | | | | | only on FMS and only if from outside the uk Fixes #571
* Add a who are you trying to contact option to contact formStruan Donald2014-04-15-0/+18
| | | | | | | | | | | In order to try and cut down on people mistakingly using this form to try and contact their council all some 'who are you trying to contact' options to the form that display appropriate messaged unless the 'FMS team option is selected. Add the validation code for this in the cobrand module. Fixes #41
* Rationalise trailing slashes from admin_base_urlHakim Cassimally2013-12-11-1/+1
| | | | | | Remove from admin_base_url (which wraps config vars like {ADMIN_,}BASE_URL) and add to places in code which aren't expecting it.
* Send back a list of titles in new report ajax detailsStruan Donald2013-08-01-0/+11
| | | | | This is so that the mobile app can use the list to build the appropriate UI as fixing the HTML that is sent for the site is too awful.
* Remove unused cobrand function.Matthew Somerville2012-08-16-2/+0
|
* Move all_reports_style functionality to templates.Matthew Somerville2012-07-13-2/+0
|
* Move banner generation logic out of cobrand code and into templates.Matthew Somerville2012-07-13-26/+0
|
* Remove various UK specific code out of Default cobrand into UK one.Matthew Somerville2012-07-13-46/+2
|
* Have a whole fake mapit (for #182) that works if MAPIT_URL is set accordingly.Matthew Somerville2012-07-13-0/+3
| | | | | | | | | Setting MAPIT_URL to .../fakemapit/ will then return one area, ID 161 and type ZZZ, whatever co-ordinate it is given. This means the default area type is now ZZZ, the UK specific types are moved into the UK cobrands, and the tests updated accordingly to still function (they assume UK-ness a lot, so probably need an ALLOWED_COBRANDS entry of "fixmystreet: 'localhost'" and for your host's domain to show fixmystreet too).
* Call process_extras() from updates too, so that error checking runs.Matthew Somerville2012-06-21-6/+6
|
* Put admin URL in cobrand where it should be.Matthew Somerville2012-06-08-0/+4
|
* Merge branch 'barnet-newstyle'Struan Donald2012-06-08-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .gitignore perllib/FixMyStreet/Cobrand/FixMyStreet.pm perllib/FixMyStreet/Cobrand/UKCouncils.pm templates/web/default/reports/council.html templates/web/fixmystreet/header.html templates/web/fixmystreet/report/display.html web/cobrands/bromley/layout.scss web/cobrands/fixmystreet/fixmystreet.js web/js/map-OpenLayers.js
| * configure all reports problem style in the cobrandStruan Donald2012-05-02-0/+2
| |
* | Only Bromley cobrand has first/last name fields, all have title.Matthew Somerville2012-05-21-1/+3
| |
* | Remove some duplicate code.Matthew Somerville2012-05-18-1/+1
| |
* | fix get_council_sender and make sure it works for uk councilsStruan Donald2012-04-04-1/+1
| |
* | get send method from open311 conf tableStruan Donald2012-04-03-4/+6
| |
* | Merge branch 'send-report-rewrite' into bromley-new-send-reportsStruan Donald2012-04-03-0/+13
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: bin/send-reports perllib/FixMyStreet/Geocode/Bing.pm web/js/map-OpenLayers.js
| * | Merge remote-tracking branch 'origin/master' into send-report-rewriteStruan Donald2012-04-03-0/+26
| |\| | | | | | | | | | | | | | | | | | | Conflicts: bin/send-reports perllib/FixMyStreet/Cobrand/Default.pm perllib/FixMyStreet/Cobrand/FixMyStreet.pm
| * | rough first draft of send-report refactor not. Work in progress at the momentStruan Donald2012-02-27-0/+13
| | |
| * | make sure admin summary page handle new cobrand structure correctlyStruan Donald2012-02-02-0/+5
| | |
* | | move special field processing out to cobrandsStruan Donald2012-04-02-0/+26
| |/ |/|
* | Get test suite all passing again, and fix bug displaying partial photo and ↵Matthew Somerville2012-03-02-0/+31
|/ | | | my stupid use of c as a variable.
* Remove some unused cobrand functions, start of a base class.Matthew Somerville2012-01-20-0/+5