aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/My.pm
Commit message (Collapse)AuthorAgeLines
* Fix issue with categories with regex characters.Matthew Somerville2017-04-13-1/+1
| | | | | | 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.
* Return JSON if `ajax` in paramspezholio2017-01-31-0/+4
|
* Add shortlist buttons to report lists.Matthew Somerville2017-01-12-7/+68
| | | | | | | 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/+3
| | | | | | | | 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-1/+6
| | | | | 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-4/+4
| | | | | | 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.
* Simplify some permissions logic with extra helper methodDave Arter2016-09-08-1/+1
|
* Add user planned reports.Matthew Somerville2016-08-22-6/+66
| | | | | | A user with the appropriate permission can add/remove reports from their list of planned reports using a button on a report page. The list can be viewed at /my/planned.
* Refactor map pin/feature functions.Matthew Somerville2016-07-21-8/+1
|
* Fix crash on /my page due to missing pin.problemDave Arter2016-07-21-0/+1
|
* Fix bug showing reports on Your Reports.Matthew Somerville2015-12-17-2/+2
| | | | | 92dfeac used an incorrect user column name in the new lookup, and there was no test to catch the regression.
* Fix cobrand restriction of My/Nearby.Matthew Somerville2015-12-15-4/+3
| | | | | | | | | | | | 5c79337 simplified a bit too far, as after then a particular cobrand could in Nearby and My only filter reports to a particular body, not any other criteria. To fix this, introduce more generic functions in the default cobrand to allow more flexibility. Make sure a few tests delete their bodies fully so that new tests pass when run as part of the suite. Fixes #1289.
* Add state/category filters to base cobrand.Matthew Somerville2015-10-07-4/+2
| | | | | | | 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.
* Simplify/consolidate body restriction db code.Matthew Somerville2015-08-19-5/+3
| | | | | | | Make dashboard work properly in two-tier councils, showing reports sent to both. Create an index on the array of the bodies_str column to speed up performance, and use that throughout the code replacing all LIKE scans. This also enables a simplifying tidy of the restriction code.
* 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.
* 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-1/+1
|
* Simplify default status filter for map pinsSteven Day2015-06-29-3/+3
|
* Allow filter by 'category' query param on /myDave Arter2015-06-29-0/+14
|
* Combine all My Reports into a single list, allow filteringSteven Day2015-06-29-1/+17
|
* Explanatory text/link on /my with no reportsHakim Cassimally2014-02-26-0/+3
| | | | | | | | | | | Usually you won't get to "Your Reports" page without any content (reports or updates) but it's possible to do so, as we just discovered in a client meeting, logging into that page, and arriving on a screen of blank content with no guidance. This patch shows some text and a link to create a new report, if there aren't any problems/updates. Fixes #671
* Pins yellow on /my for Bromley.Matthew Somerville2012-05-22-1/+1
|
* Photos in report list on /my page, and only show cobranded reports.Matthew Somerville2012-03-26-2/+9
|
* show closed problems on my pageStruan Donald2011-08-18-1/+1
|
* do not use raw problem state to categorise problemsStruan Donald2011-08-18-1/+2
|
* remove hard coded references to fixedStruan Donald2011-08-18-2/+2
|
* Show confirmed reports.Matthew Somerville2011-08-12-1/+3
|
* Sort reports on My Reports page, whoops.Matthew Somerville2011-08-05-3/+8
|
* Allow pin moving without reload of page (at last).Matthew Somerville2011-07-21-0/+1
|
* Use our own StreetView tile server, add missing IE6 CSS for OpenLayers, ↵Matthew Somerville2011-07-01-3/+0
| | | | don't set map parameter in JS.
* Pagination of reports/updates.Matthew Somerville2011-06-28-5/+14
|
* List updates on Your Reports (for #127), and a map too (#124).Matthew Somerville2011-06-28-0/+7
|
* Sort problems, and have a map, maybe.Matthew Somerville2011-06-28-0/+25
|
* Implement redirect upon sign in to where the user came from; tidy up error ↵Matthew Somerville2011-06-21-7/+1
| | | | display.
* Prevent access to '/my' for users who are not logged inEdmund von der Burg2011-04-01-2/+7
|
* Added 'my' section to the siteEdmund von der Burg2011-03-04-0/+31