aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
Commit message (Collapse)AuthorAgeLines
* [fixmystreet.com] Remove special NI code.Matthew Somerville2015-03-16-128/+76
| | | | | This is now handled by normal bodies in the admin. In order to remove references in send_reports, tidy up (unused) EmptyHomes code a bit.
* [fixmystreet.com] Remove special Report-It code.Matthew Somerville2015-03-13-168/+0
|
* Factor out test contact creation to function.Matthew Somerville2015-03-13-11/+24
|
* Use config variable for setting proxy trust.Matthew Somerville2015-02-24-5/+5
| | | | | | Rather than hardcoding domain names, add a SECURE_PROXY_SSL_HEADER variable that provides a trusted HTTP header and value that can be used to determine if we're behind a HTTPS proxy.
* Support Stamen toner-lite and Bing Maps tiles.Matthew Somerville2015-02-23-47/+81
|
* Tidy up front page and map copyright templates.Matthew Somerville2015-02-23-1/+6
|
* [UK] Output NI grid references to NI councils.Matthew Somerville2015-02-20-12/+17
|
* Use List::MoreUtils, old List::Util lacks none().Matthew Somerville2015-02-20-1/+1
|
* Merge branch '972-completion-adverts'Matthew Somerville2015-02-20-341/+48
|\
| * Add URLs for easy looking at confirmation pages.Matthew Somerville2015-02-19-2/+39
| |
| * Always show confirmation page for reports/updates.Matthew Somerville2015-02-19-27/+8
| | | | | | | | | | Rather than redirecting to the report if they're already logged in. Fixes #1003.
| * Add new "next steps" to bottom of success pages.Zarino Zappia2015-02-19-312/+1
| | | | | | | | Remove the old CrossSell code. Fixes #972.
* | Merge branch 'jonkri-master'Matthew Somerville2015-02-20-113/+7
|\ \ | |/ |/|
| * [FixaMinGata] Remove two unneeded cobrand methodsJon Kristensen2015-02-16-115/+0
| |
| * [FixaMinGata] Differ pin colours based on stateJon Kristensen2015-02-16-0/+9
| |
* | Merge branch 'remove-need-for-en-gb-in-config'Matthew Somerville2015-02-18-10/+10
|\ \
| * | 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.