aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
Commit message (Collapse)AuthorAgeLines
* [fixmystreet.com] CSV download from marketing pageStruan Donald2017-12-15-63/+138
| | | | | | Limited to most recent 100 rows and not full data. Factor the two CSV generations together.
* [fixmystreet.com] Council average response time.Struan Donald2017-12-15-24/+40
|
* [fixmystreet.com] Marketing page, filterable statsStruan Donald2017-12-15-19/+87
| | | | | Uses the dashboard stats code to display a rough table of stats which can be used as the basis for a chart later
* Merge branch 'issues/forcouncils/261-rdi-check'Matthew Somerville2017-12-13-11/+19
|\
| * Fix issues with send method category change.Matthew Somerville2017-12-13-8/+5
| | | | | | | | | | | | Use the send method recorded at the time of sending, not the current one (it may have changed since), and only resend if the new send methods are not a subset of the old.
| * Store all successful send methods.Matthew Somerville2017-12-13-3/+14
| |
* | Merge branch 'jquery-needed-some-places-it-is-not'Matthew Somerville2017-12-13-0/+2
|\ \
| * | [UK] Make sure jQuery is loaded where it is neededMatthew Somerville2017-12-12-0/+2
| | | | | | | | | | | | | | | | | | | | | Bromley uses jQuery for its A-Z on all pages; only load Bristol map JavaScript on map pages (same as Angus); drop Oxfordshire JS use of jQuery; fix Zurich load order; and improve jQuery checking in other JavaScript.
* | | [fixmystreet.com] Improve fixture descriptions.Matthew Somerville2017-12-07-1/+1
|/ /
* / Add opt-in cobrand hook for category groupsDave Arter2017-12-06-9/+11
|/
* Merge branch 'issues/forcouncils/264-stop-csv-human-dates'Matthew Somerville2017-12-05-11/+18
|\
| * Stop using 'readable' dates in CSV export.Matthew Somerville2017-12-01-9/+9
| | | | | | | | We want machine-readable dates in a data export.
| * Fix potential update issues with CSV export.Matthew Somerville2017-11-30-1/+2
| | | | | | | | | | Only look at confirmed updates, and spot updates using mark_fixed and not problem_state (e.g. questionnaire responses).
| * Fix issues with Problem->as_hashref.Matthew Somerville2017-11-30-2/+8
| | | | | | | | | | Include actual times, not just human-readable ones, and make sure state is translated correctly.
* | Group categories on new report formDave Arter2017-12-05-3/+15
| | | | | | | | Ensures ‘Other’ group is last in the list, if it exists.
* | Only allow one auto-response template per category/state.Dave Arter2017-12-04-6/+47
|/
* Merge branch '1919-consolidate-statistics'Matthew Somerville2017-11-29-564/+271
|\
| * Consolidate summary statistics pages.Matthew Somerville2017-11-29-496/+196
| |
| * Refactor stats pages to their own controller.Matthew Somerville2017-11-29-150/+157
| |
* | allow dashboard CSV export access using token authStruan Donald2017-11-29-0/+4
| |
* | Staff user page for generating an access token.Struan Donald2017-11-29-0/+22
| | | | | | | | | | Adds a link from /my to a page for generating an access token which is then stored in the user's extra field.
* | Add an access token authentication credential.Matthew Somerville2017-11-29-0/+15
|/ | | | This allows access if you have a token associated with your user.
* display council contacts on council dashboardStruan Donald2017-11-28-0/+3
| | | | | | | | Display a list of the email addresses used to contact the council on the council dashboard. Does not display emails if the council has an integration, rejects FMS reports or is currently turned off. Fixes mysociety/fixmystreetforcouncils#941
* Ensure calculated lat/lon are sent to DB in correct formatDave Arter2017-11-24-6/+6
| | | | | | | | When viewing /around without the `js=1` parameter in a Spanish locale the incorrect decimal separator was being passed to the DB query, causing a crash. Fixes mysociety/fixmystreet-commercial#942
* Reinstate appcache_enabled staging flagDave Arter2017-11-24-1/+2
| | | | | This can optionally disable appcache for superusers which can be handy in development.
* Allow cobrands to disable moderation emailsDave Arter2017-11-22-1/+16
| | | | | | | This adds a new send_moderation_notifications method which can be overridden by cobrands to prevent “your report has been moderated” emails from being sent. Fixes mysociety/fixmystreet-commercial#936
* Treat dashboard end date as that given, inclusive.Matthew Somerville2017-11-16-2/+3
| | | | | If someone selects 15-16th November, they want reports from both those dates, not just the 15th.
* Merge branch '1901-js-deferring'Matthew Somerville2017-11-15-9/+94
|\ | | | | | | Updated geolocation.js with concurrent changes.
| * Move map JS to code, to be used on all pages.Matthew Somerville2017-11-15-6/+93
| |
| * Only include offline JavaScript if needed.Matthew Somerville2017-11-15-3/+1
| |
* | Merge branch '1905-fix-broken-geocoder-results'Matthew Somerville2017-11-15-2/+6
|\ \
| * | Make sure returned geocoder data is UTF-8 decoded.Matthew Somerville2017-11-15-1/+5
| | | | | | | | | | | | | | | | | | It turns out that HTTP::Message (as used by LWP::Simple::get) only decodes text/* and 'XML', not application/json, as used by all the geocoders. Work around this, hopefully in a future-proof way.
| * | Sort geocoder query parameters in URL.Matthew Somerville2017-11-15-1/+1
| |/ | | | | | | This means there should only be one cache entry per request.
* / add date range options to council dashboardStruan Donald2017-11-14-0/+21
|/
* [fixmystreet.com] No social login on UK councils.Dave Arter2017-11-08-0/+2
|
* Allow individual cobrands to disable Facebook/Twitter loginDave Arter2017-11-08-1/+5
| | | | This means FB/Twitter login is disabled even if FACEBOOK_APP_ID/TWITTER_KEY are set.
* allow admin to unban a userStruan Donald2017-11-07-3/+27
| | | | | | | Add an unban button to the user edit page when a user is in the abuse table. Fixes #1881
* do not override template when displaying body contacts as textStruan Donald2017-11-07-1/+4
| | | | | | | move setting the body template to before `fetch_contacts` so it doesn't override setting the text only email address template. Fixes #1895
* Fix issue editing user previously lacking a name.Matthew Somerville2017-11-07-3/+4
| | | | | The check that a name was entered was testing the user's current name, not the name entered in the form.
* cobrand option to control prefilling of report fields for inspectorsStruan Donald2017-11-06-0/+4
| | | | | | | | | | Add a `prefill_report_fields_for_inspectors` config to cobrands, defaulted to 0, to control the automatic pre-population of report fields. Also add default of 1 for UKCouncil cobrand. Fixed #1854
* Fix fetching of duplicate reports.Matthew Somerville2017-11-06-2/+3
| | | | | | c9998984 altered nearby.json to use on_map rather than around_map, to prevent needless text appearing, but did not take account of the fact that it expects Problem objects, not Nearby objects.
* Merge branch 'around-and-about-pagination'Matthew Somerville2017-11-06-79/+70
|\
| * Fix warning in contact test.Matthew Somerville2017-11-06-4/+3
| |
| * Add pagination to around page.Matthew Somerville2017-11-06-21/+49
| |
| * Remove Show all pins link and on_map_list_limit.Matthew Somerville2017-11-06-51/+11
| | | | | | | | | | /around will now show all reports all the time, but we are about to introduce pagination to stop that.
| * Have /around ajax use same format as others.Matthew Somerville2017-11-02-7/+11
| | | | | | | | | | Both /reports and /my work by using the same URL with ajax=1. We should use the same on /around for consistency.
* | Merge branch 'issues/forcouncils/248-duplicate-save-bug'Matthew Somerville2017-11-06-0/+3
|\ \
| * | Remove shortlist form from inspect duplicate list.Matthew Somerville2017-11-02-0/+3
| |/ | | | | | | | | This functionality isn't needed here, and causes an issue with the main form submitting due to a form inside a form.
* / Update Bing Maps parameter ID.Matthew Somerville2017-11-06-2/+2
|/
* always allow problems to be removed from shortlistStruan Donald2017-10-27-7/+11
| | | | | | | | | | If a user is trying to remove a problem from their shortlist we should always allow it regardless of the state of the problem. Previously if a problem wasn't displayed on the site then it could not be removed from the shortlist which was an issue with council cobrands and reports that had changed body. Fixes mysociety/fixmystreetforcouncils#243