aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Around.pm
Commit message (Collapse)AuthorAgeLines
* Fix issue with categories with regex characters.Matthew Somerville2017-04-13-3/+3
| | | | | | As the templates were using `grep`, they failed to match on a category such as "Footpaths (right of way)". Changing the stash variables to be hashes instead of lists makes checking for a key simpler. Fixes #1688.
* Add shortlist buttons to report lists.Matthew Somerville2017-01-12-0/+2
| | | | | | | This includes adding/removing reports from a user's shortlist, and manual reordering of a shortlist with up/down buttons. The backend code can cope with an item moving to any point in the list.
* Add sort order options to list pages.Matthew Somerville2016-11-04-2/+8
| | | | | | | | Includes newest, oldest, least/most recently updated, and most comments. The default remains the same, which is last updated on /reports, and newest on /my and /around (the latter plus not-in-view sorted-by-distance ones).
* Add ajax pin fetching to reports/my pages.Matthew Somerville2016-10-14-3/+0
| | | | | This matches the behaviour on /around, and prevents a refresh when changing the state or category filters.
* Allow multiple selections in report list filter.Zarino Zappia2016-10-13-8/+6
| | | | | | This lets people filter by multiple categories or states. It uses our jQuery multi-select plugin to turn the <select multiple>s into little overlay lists of checkboxes. HTML5 history is also supported.
* Add manage screen for editing priority/category.Matthew Somerville2016-09-09-1/+1
| | | | | | | This is a cut-down version of the full inspect screen. We truncate the co-ordinates just in case (they should be anyway but e.g. the test report isn't).
* Allow searching for reports with ref: prefix in postcode fieldDave Arter2016-08-22-0/+23
| | | | | | | | | Searches the `id` and `external_id` fields. This takes you directly to the report if only a single report matches, otherwise a disambiguation page is shown. For mysociety/fixmystreetforcouncils#16
* Refactor map pin/feature functions.Matthew Somerville2016-07-21-19/+30
|
* [UK Councils] Show all reports on cobrand /around mapDave Arter2016-07-08-0/+1
| | | | | | | | | | | | | | There is a concern that excluding district council reports from a two-tier council's cobrand's /around page might lead to duplicate reports or reports never being seen. This commit adds them to the map and the sidebar and displays the destination council in the report list item. Clicking the pin or the report link leads to the report on FMS.com. Reports sent to the a council other than the the active cobrand are shown as grey pins on the map, and the receiving council's name is shown in the sidebar list.
* Improve CSRF tokens and add to more forms.Matthew Somerville2016-06-20-0/+2
|
* Remove some unused cobrands.Matthew Somerville2016-04-20-2/+2
|
* Don't double-decode geocoded addresses.Matthew Somerville2016-03-15-2/+4
| | | | | | | | | Perl 5.20 introduced a version of Encode that errors on decoding already decoded content (rather than returning the same string). Whilst this can be taken as a bug in our code (although the decoding exists because some versions of FastCGI silently UTF-8 encode the content), in the changelog for Perl the only reference to this change is the line: "Encode has been upgraded from version 2.49 to 2.60.".
* Switch to JSON::MaybeXS, remove JSON::XS.Matthew Somerville2016-01-22-4/+3
| | | | | | Travis has Cpanel::JSON::XS preinstalled, which means that the build would fail there, as JSON::MaybeXS would try and upgrade JSON::XS to version 3 which the snapshot did not contain.
* Add state/category filters to base cobrand.Matthew Somerville2015-10-07-5/+0
| | | | | | | This removes the on map/nearby tabs, replacing them with one combined list. The styling is moved to the base, so that it is used on mobile too. A closed option is added to the existing dropdown, and the base/fixmystreet my templates are also combined. Fixes #1141.
* Combine some base/fixmystreet templates.Matthew Somerville2015-10-07-1/+1
| | | | | | | | The aim is to combine base and fixmystreet as much as possible, providing enough template/styling hooks for any cobrand. This commit removes the need for separate base/fixmystreet templates for the front page, almost all of the /around templates, the open graph headers, and the low level item list templates.
* Factor out all uses of param()/params.Matthew Somerville2015-07-07-17/+16
| | | | | | | 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.
* Refactor duplicated filter_status code into a single functionSteven Day2015-06-29-14/+2
|
* Rename map filtering GET param, remove unnecessary querySteven Day2015-06-29-12/+5
|
* Simplify default status filter for map pinsSteven Day2015-06-29-3/+3
|
* Populate category filter with all available categoriesSteven Day2015-06-29-9/+23
|
* Make load_and_group_problems respect status/category query paramsDave Arter2015-06-29-1/+1
| | | | | | | This allows the /reports page to be filtered using the status/category dropdowns. This is implemented in a manner that means the t/c params will override status/category.
* Use a consistent method of filtering by category on /around and /ajaxDave Arter2015-06-29-0/+13
|
* Allow cobrands to override the default 'state' filter for map pinsDave Arter2015-06-29-1/+2
|
* Ignore invalid categories in /around query stringDave Arter2015-06-29-4/+35
|
* Stash category from query params for templates to useSteven Day2015-06-29-0/+1
|
* Filter initial pins by category on /aroundDave Arter2015-06-29-1/+4
|
* Make sure all co-ordinates are stringified.Matthew Somerville2015-02-13-12/+8
| | | | | | | 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.
* Only show text on /reports if appropriate.Matthew Somerville2014-11-14-2/+0
| | | | | Only show "select..." if more than one body, and only mention greyed out lines if there are any. Fixes #869.
* [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".
* return locations with coordinates as well as bare locationsStruan Donald2013-03-21-2/+3
|
* Fix tests.Matthew Somerville2013-02-20-1/+1
|
* Redirect to front page if nothing provided.Matthew Somerville2013-02-20-3/+4
|
* Make sure title not shown on pins on unconfirmed Zurich reports.Matthew Somerville2013-01-24-1/+1
|
* remove redundant code accidentally left in :(Struan Donald2013-01-17-14/+0
|
* add an ajax location lookup method for doing string -> lat,long lookupStruan Donald2013-01-17-0/+46
| | | | factor out shared code with autocomplete method to save repetition
* Autocomplete of Zurich street names (2beb264 plus tweaks).Matthew Somerville2013-01-07-0/+27
|
* Update reporting to use bodies.Matthew Somerville2012-12-15-6/+6
|
* Merge remote branch 'origin/master' into fmb-read-onlyDave Whiteland2012-05-29-1/+2
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: bin/send-reports perllib/FixMyStreet/Cobrand/Default.pm perllib/FixMyStreet/Cobrand/FixMyStreet.pm templates/web/fixmystreet/alert/index.html templates/web/fixmystreet/around/display_location.html web/cobrands/fixmystreet/_layout.scss web/js/map-OpenLayers.js
| * Pins yellow on /my for Bromley.Matthew Somerville2012-05-22-1/+1
| |
| * Fix CM8 Bromley pin colours.Matthew Somerville2012-05-01-1/+2
| |
* | Allow display of areas on /around.Matthew Somerville2012-05-08-0/+1
| |
* | Area type for Barangay, and hack for working out/in boundaries. Error ↵Matthew Somerville2012-04-26-1/+1
|/ | | | handling needs looking at.
* All pins yellow, for #250.Matthew Somerville2012-03-01-1/+1
|
* Factor out fragment rendering, as additional template paths needs to be passed.Matthew Somerville2012-02-23-6/+5
|
* Remove some things from EHA website.Matthew Somerville2011-10-28-1/+1
|
* Change JSON response header for browsing map, so is not double-encoded. Add ↵Matthew Somerville2011-09-12-1/+1
| | | | tests for it.
* Merge branch 'master' of ssh://git.mysociety.org/data/git/public/fixmystreet ↵Struan Donald2011-08-17-17/+17
|\ | | | | | | | | | | | | | | | | | | | | | | into new_statuses Conflicts: db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/DB/Result/User.pm t/app/controller/admin.t templates/web/default/admin/update_edit.html web/css/core.css
| * Reduce size of JS output strings.Matthew Somerville2011-08-17-1/+1
| |
| * Use Gaze distance if already fetched.Matthew Somerville2011-08-11-3/+3
| |
| * Fix for bad requests to AJAX pin lookup.Matthew Somerville2011-08-05-13/+13
| |