aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
Commit message (Collapse)AuthorAgeLines
* Merge branch 'issues/#805-name-check-cobrand'Matthew Somerville2015-07-31-21/+34
|\
| * Move Latin-char-specific name check to cobrand.Matthew Somerville2015-07-31-21/+34
| | | | | | | | | | Also move some UK-specific code in the same function. The specific code is still tested in report_new.t.
* | Add mark as sent button to admin.Matthew Somerville2015-07-30-0/+7
| |
* | Allow body external URL to be edited in admin.Matthew Somerville2015-07-30-2/+2
|/
* Merge branch 'issues/968-refusing-councils'Matthew Somerville2015-07-28-12/+58
|\
| * [fixmystreet.com] Unresponsive bodies page/warningMatthew Somerville2015-07-28-12/+58
| | | | | | | | | | | | | | | | | | Add a special category email address used to show an unresponsive message and page when trying to report in that category. Add a "Refused" send method for setting a whole body to be unresponsive and show the message immediately, not on category selection. Factor out category template, and put at top where needed.
* | Use get_param_list instead of get_param for body areasDave Arter2015-07-27-13/+7
| | | | | | | | | | Because a body can cover more than one area, `area_ids` might contain multiple values when updating or creating a body.
* | Make sure get_param_list returns empty list if param is missingDave Arter2015-07-27-1/+2
| | | | | | | | | | | | If the specified parameter was missing from `$c->req->params`, a list of form `(undef)` would be returned. This commit makes it return an empty list if the parameter is missing.
* | [MakeMyIsland] Remove MakeMyIsland cobrandDave Arter2015-07-24-12/+0
| | | | | | | | | | | | | | | | | | The MakeMyIsland cobrand files now live in a separate repository: mysociety/fixmystreet-international The idea is that this repo will be checked out alongside the main fixmystreet one and cobrand-specific files symlinked into place. To this end, the commit also adds the MakeMyIsland symlinks to .gitignore.
* | [Oxfordshire] Make 'open' the default state for map filterDave Arter2015-07-23-0/+2
| |
* | [Oxfordshire] Vary pin colours by report statusDave Arter2015-07-22-0/+8
| | | | | | | | | | This also adds a new grey pin which is used by the Oxfordshire cobrand for reports that aren't the Council's responsibility.
* | [Oxfordshire] Order 'all reports' page by confirmation dateDave Arter2015-07-22-0/+4
| |
* | [Oxfordshire] Add expected response time to report pageDave Arter2015-07-22-2/+42
| | | | | | | | | | This adds a new problem_response_days sub to the Oxfordshire cobrand that provides an expected response time based on a problem's category.
* | [fixmystreet.com] Remove Essex/Oxfordshire code.Matthew Somerville2015-07-22-27/+0
| | | | | | | | This is no longer used.
* | update east hampshire end pointStruan Donald2015-07-20-1/+1
| |
* | Set external_id for Greenwich Open311 based on bodies_str, not cobrandDave Arter2015-07-20-1/+2
|/ | | | | Problems for Greenwich reported via the fixmystreet cobrand weren't having the external_id included in the Open311 request and were failing.
* Alter token logging in and timeout behaviour.Matthew Somerville2015-07-10-34/+93
| | | | | | | Restrict email_sign_in token to one day, unused confirmation tokens to one month. Used tokens will redirect to the created thing but not log in; don't log in with alert links (unsubscribe link never expires, reply link will still show "reopen" tickbox).
* Factor out all uses of param()/params.Matthew Somerville2015-07-07-347/+393
| | | | | | | 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.
* [Greenwich] Include external_id when submitting Open311 reportsDave Arter2015-06-30-2/+2
|
* [Greenwich] Add links to Greenwich FMS to pages on fixmystreet.comDave Arter2015-06-30-1/+1
|
* [Greenwich] Royal Borough of Greenwich front endDave Arter2015-06-30-0/+47
|
* Refactor duplicated filter_status code into a single functionSteven Day2015-06-29-61/+29
|
* Rename map filtering GET param, remove unnecessary querySteven Day2015-06-29-16/+9
|
* Simplify default status filter for map pinsSteven Day2015-06-29-23/+14
|
* Populate categories filter dropdown on /reports pageDave Arter2015-06-29-0/+9
|
* Allow filter by 'category' query param on /myDave Arter2015-06-29-0/+14
|
* Populate category filter with all available categoriesSteven Day2015-06-29-9/+23
|
* Preserve the 'status' value on /reportsDave Arter2015-06-29-0/+10
|
* Make load_and_group_problems respect status/category query paramsDave Arter2015-06-29-3/+16
| | | | | | | 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-2/+17
|
* Combine all My Reports into a single list, allow filteringSteven Day2015-06-29-1/+25
|
* Allow cobrands to override the default 'state' filter for map pinsDave Arter2015-06-29-1/+11
|
* Allow /ajax to be filtered by statusDave Arter2015-06-29-13/+31
| | | | | If present, the 'status' param can be set to 'open' or 'fixed' to display ensure only open or fixed reports respectively are included in the response.
* 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
|
* Add category filtering support to /ajax via 'category' GET paramDave Arter2015-06-29-11/+14
|
* Simpler report meta information displayZarino Zappia2015-06-29-4/+5
| | | | | Removes the italics, and breaks the wording into two separate paragraphs, at the top of the report page.
* Allow cobrands to specify ordering on all reports pageDave Arter2015-06-29-1/+11
| | | | | Refactor the default ordering into a method on the Default cobrand which can be overridden by subclasses.
* Add hidden_states and updating functions.Hakim Cassimally2015-06-16-32/+64
| | | | To allow visible/hidden states to be manipulated at runtime.
* [Bromley] Improve disambiguation for Mottingham LaneSteven Day2015-06-12-3/+2
| | | | | | | The previous commit added some disambiguation, but it didn't actually work - despite the string working when you search for it directly. This commit improves that, so we just add a postcode to the road name, which definitely works.
* [Bromley] Add more disambiguation for Bromley - Mottingham LaneSteven Day2015-06-12-3/+8
|
* Update Bing Maps parameter ID.Matthew Somerville2015-05-05-3/+4
|
* Merge branch 'issues/commercial/678-open311-and-csv'Hakim Cassimally2015-03-31-9/+60
|\
| * [Zurich] change jurisdiction_id in Open311 exampleHakim Cassimally2015-03-31-0/+12
| |
| * [Zurich] add columns to stats exportHakim Cassimally2015-03-31-10/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Original Report description - Amended Report description (unsure what this is) - Media URL (currently one picture, in the future 1-3 pictures) - Interface used (see open311) - Requested datetime (see open311) (seems to be same as created) - Agency sent datetime (see open311) - Updated datetime (see open311) - Council-Response - title as per https://github.com/mysociety/FixMyStreet-Commercial/issues/678
| * [Zurich] add service_notice based on public_responseHakim Cassimally2015-03-31-0/+6
| | | | | | | | for https://github.com/mysociety/FixMyStreet-Commercial/issues/678
* | [ArreglaMiBarrio] Initial CSS/logo/FAQ.Matthew Somerville2015-03-24-0/+10
|/
* Add Extra role to ease use of {extra} field.Hakim Cassimally2015-03-20-65/+264
| | | | | | | | | Historically, the extra field has been used in two different ways by different cobrands, both as a list (e.g. Open311 category fields) and a hash (e.g. the Zurich cobrand). This commit consolidates usage, adding an API to make use of the field easier and always returning a hash for the code to use. Fixes #1018.
* [Harrogate] show warning banner for NYCC categoriesHakim Cassimally2015-03-20-0/+39
| | | | | | | | | | | | | | | | | | | | Harrogate asked for NYCC managed issues to be linked to that council's website. We don't prevent the issue from being logged, but do show a warning banner. As this is at Harrogate's request, we only do this for the Harrogate cobrand, not the whole site, using a new cobrand hook `munge_category_list` Unfortunately, categories are currently passed to the template as plain text, e.g. not structured data. As a simple implementation, we append "( NYCC)" to the appropriate category names. JS could then strip the names back in future, if required (though we're not doing this.) Instead we add a jQuery hook to show the most appropriate link provided. See https://github.com/mysociety/FixMyStreet-Commercial/issues/703