aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
Commit message (Collapse)AuthorAgeLines
...
| * | Remove need to have to specify en-gb in LANGUAGES.Matthew Somerville2015-02-13-10/+10
| | | | | | | | | | | | | | | | | | Instead, add it if not present at the negotiation stage. Even if not negotiated, we currently need it to be present for the in_gb_locale() calls to work.
* | | [Harrogate] disable questionnairesHakim Cassimally2015-02-17-0/+4
| |/ |/| | | | | at council request after brief discussion today
* | Merge in installation changes.Matthew Somerville2015-02-16-1/+6
|\ \ | | | | | | | | | Fall back better if a couple of things aren't installed.
| * | Have code fallback to Image::Size if no jhead.Matthew Somerville2015-02-05-1/+6
| |/ | | | | | | Don't bother installing it on Travis.
* | Switch easting/northing output to one line.Matthew Somerville2015-02-16-4/+1
| | | | | | | | | | This is more friendly for e.g. copy and pasting by someone using the Dynamics CRM software. Fixes #997.
* | Merge branch 'issues/fms-mobile/190'Matthew Somerville2015-02-13-104/+82
|\ \ | | | | | | | | | | | | Conflicts: perllib/FixMyStreet/Geocode/Google.pm
| * | Make sure all co-ordinates are stringified.Matthew Somerville2015-02-13-105/+82
| |/ | | | | | | | | | | | | This includes MapIt postcode lookups, geocoding, query parameters, tile clicks. Stringifying truncates them to six decimal places, which means we no longer need any "short" versions anywhere, and the JSON response will always uses a decimal point regardless of locale.
* | Merge branch 'issues/684-expire-geocache'Matthew Somerville2015-02-13-117/+44
|\ \
| * | Expire cached geolocations after a week.Matthew Somerville2015-02-13-117/+44
| |/ | | | | | | | | And refactor geoloction caching code into one function (except for Zurich which has its own SOAP based system).
* / Create timezone objects only once at startup.Matthew Somerville2015-02-13-54/+31
|/ | | | | | Cache a DateTime::TimeZone::Local object, so that in an environment where /etc/localtime is a copy of a timezone file, we don't repeatedly walk all the timezone files to find the matching one.
* [Oxfordshire] Update email template for cobrand.Matthew Somerville2015-01-21-1/+4
| | | | And update HTTPS link.
* Rename 'body_edit' admin endpoint to 'body'.Matthew Somerville2015-01-20-6/+4
|
* Add admin navigation link to Configuration page.Matthew Somerville2015-01-20-2/+2
|
* Merge branch 'remove-need-for-site-title'Matthew Somerville2015-01-19-28/+6
|\
| * Move site_title function to site-name web templateMatthew Somerville2015-01-19-28/+6
| | | | | | | | | | | | | | This matches the email template behaviour, and makes it much easier to override without requiring a cobrand package file. Fixes #979.
* | Remove need for cron-wrapper with existing scriptsMatthew Somerville2015-01-19-8/+2
| | | | | | | | | | Call the necessary boilerplate in each script so you can call them directly. Remove boilerplate from files that don't need it.
* | Use env in shebang lines, and remove unneeded onesMatthew Somerville2015-01-19-44/+1
| |
* | Rename test-wrapper to run-tests.Matthew Somerville2015-01-19-1/+1
| | | | | | | | As that's what it does; and use it in Travis.
* | Tidy up of bin directory.Matthew Somerville2015-01-19-6/+0
|/ | | | | Remove some unneeded scripts, move others to cobrand-specific directories.
* Use same handling for cron and non-cron email.Matthew Somerville2015-01-13-53/+62
| | | | | This means that e.g. SMTP authentication is used when set up by all emails, not just non-cron ones. Fixes #988.
* Use HTTPS OpenStreetMap tiles.Matthew Somerville2015-01-09-4/+4
|
* [EastSussex] disable questionnairesHakim Cassimally2015-01-09-0/+4
| | | | at ESCC request today
* [Harrogate] update email for live deploymentHakim Cassimally2015-01-08-1/+1
|
* [Harrogate] wordings and stylesHakim Cassimally2015-01-08-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | - auth and intro pages - wording of around page - Styling work with Mike - FAQ and footer tweaks https://github.com/mysociety/FixMyStreet-Commercial/issues/654 https://github.com/mysociety/FixMyStreet-Commercial/issues/655 - Extra spacing https://github.com/mysociety/FixMyStreet-Commercial/issues/656 - Width of footer (override auto -> 100%) - style and logo tweaks - Logo/header same height on all pages (inc mappage) - Content spacing tweaks - Correct "Harrogate district" wording https://github.com/mysociety/FixMyStreet-Commercial/issues/658 - Add extra disclaimer about reports fwd'd to NYCC - push fms_pan_zoom down with css!important (alternative is to use JS as Hart does, or possibly to fix this so doesn't require !important) - add privacy section (Copies part of text on main page, this should perhaps be factored out.) - Set bodyclass for change_password Sets a bodyclass that's unused outwith harrogate cobrand, so should be safe.
* [Harrogate] custom form fieldsHakim Cassimally2015-01-08-23/+180
| | | | | | | | | | | | | | Requires previous (generic) commit to prevent information only categories (e.g. Dead animals message) from displaying a spurious textbox. Also support for sending these custom fields by email: Requires a hook in RS::Problem method, as by default, only a restricted number of hard-coded fields are send in the email. (And the template language is pseudo-PHP so we can't simply pass in the whole data-structure.)
* [Harrogate] basic cobrandHakim Cassimally2015-01-08-0/+89
|
* [Bromley] fix BR5 and BR6 geocoding issuesHakim Cassimally2014-12-29-0/+18
| | | | | | | | | fixes #850 by adding appropriate postcodes to fix some issues reported by council. Unsure why, but one of these (Kelsey Hill) seemed to require different ordering than others: is this a Bing oddity, or am I doing something wrong?
* Version 1.5.2.v1.5.2Matthew Somerville2014-12-17-24/+22
| | | | | | | 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.
* Add a script to always test on a clean db/config.Hakim Cassimally2014-12-12-0/+94
| | | | Fixes #786.
* By default, use area-based alerts.Matthew Somerville2014-12-12-11/+31
| | | | | | | | | The body-based alert only works if the body ID matches the MapIt ID. This fixes #959. Further work needs to be done to enable proper body-based alerts that work properly in all circumstances. Consequently, factor out fixed body IDs from many tests. Also fix a couple of tests not overriding geocoder correctly.
* Add Open311 i18n test, and add utf8 pragma.Matthew Somerville2014-12-10-0/+1
| | | | Also remove some unused variables.
* Set DefaultLocale appropriately when language set.Matthew Somerville2014-12-10-7/+8
|
* Fix encoding of signature in emails.Matthew Somerville2014-12-10-0/+2
| | | | | This text was being imported encoded, which led to double-encoding when used in templates. Fixes #960 and #961.
* Pass cobrand into send_email_cron when sending SendReport emailsSteven Day2014-12-09-1/+3
| | | | | | | | | | | | | | Without this, email sending within a cobrand will get the right main email template (submit.txt) for the email - because it uses the cobrand inside get_template - but it doesn't use the cobrand for things like the email signature, because you have to pass it into send_email_cron manually to make it cobrand-aware. This probably hasn't been noticed before because most cobrands are called Something FixMyStreet, but Collideoscope is different and hence it caused a problem there. Closes mysociety/FixMyStreet-Commercial#621.
* Only have jurisdiction_id in request if present.Matthew Somerville2014-11-26-7/+7
| | | | | | So don't request '...services.xml?jurisdiction_id=' as that can lead to an error from an Open311 server that expects either no parameter at all or a stated jurisdiction_id.
* Better error if Open311 returns nil service list.Matthew Somerville2014-11-21-8/+10
| | | | | | | | If an Open311 server responded with e.g. '<services></services>', you got a strange hash error as the code treated it as one undef service. Spot this at the same point we check anything was returned. Also remove a couple of warnings due to lc of a maybe-undef variable.
* [FiksGataMi] Update cobrand to current design.Matthew Somerville2014-11-19-16/+0
|
* Tidy up reporting sidebar notes and privacy.Matthew Somerville2014-11-19-8/+9
| | | | For #344 and #935.
* Show logged in message as success, not error.Matthew Somerville2014-11-18-3/+4
| | | | | | Fixes #357. Also consolidate almost-identical fill_in_details.html template (for #344).
* Only show text on /reports if appropriate.Matthew Somerville2014-11-14-5/+9
| | | | | Only show "select..." if more than one body, and only mention greyed out lines if there are any. Fixes #869.
* Remove unused variable.Matthew Somerville2014-11-07-1/+0
| | | | | Also, s///r isn't present in 5.10, and FixMyStreet should still install on squeeze.
* Remove liberror-perl and libsoap-lite-perl.Matthew Somerville2014-11-05-6/+7
| | | | | | Try and save other people the potential pain of installing SOAP::Lite; only UK FixMyStreet and Zurich geocoder use it, so set it as an optional feature in the cpanfile instead.
* Category should be escaped in RSS feeds.Matthew Somerville2014-10-24-1/+1
| | | | In case it contains an ampersand or somesuch.
* Allow filtering by category on All Reports page.Matthew Somerville2014-10-24-0/+6
| | | | If you know to change the URL, anyway, for now.
* [fixmystreet.com] Experiment, no pins by default.Matthew Somerville2014-10-17-10/+6
| | | | | | | | This changes the default flow to show no pins and a message about reporting, with the second tab displaying existing problems (and showing map pins). Those existing problems are the ones that would currently be on "problems on the map" followed by those currently on "problems nearby".
* [fixmystreet.com] Remove login content experiment.Matthew Somerville2014-10-17-9/+1
| | | | This gave no conclusive results, which was interesting.
* [Warwickshire]. PopulateServiceList deletion tweakHakim Cassimally2014-10-16-4/+15
| | | | | | as WCC is (during beta) mixed email (manually updated) and Open311, override the behaviour to delete contacts not returned by service list, to ignore ones that look like email addresses.
* [Warwickshire] Integration bits during/after visitHakim Cassimally2014-10-16-34/+71
| | | | | | | - Tweaks required to get things working in WCC environment - update Open311 to onsite changes - updated Open311 parameters after WCC's Bentley and County Highways workshop. - ... including ce_cpr_id
* Open311: FMS <-> Open311 Endpoint End to end testsHakim Cassimally2014-10-16-0/+1
| | | | | Uses LWP::Protocol::PSGI to avoid having to spawn external processes in order to test these end to end.
* Open311 tweaks to get round-tripping workingHakim Cassimally2014-10-16-3/+10
| | | | | If https://github.com/mysociety/fixmystreet/pull/792 is accepted then this should be rewritten in terms of that.