aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Add customisable defect types.Dave Arter2017-03-23-40/+593
| | | | | | | | | Problems can have an associated defect type, that can be assigned during an inspection. Include an admin interface for managing these types, that can also be assigned on a per-category basis, currently available to the Oxfordshire cobrand. (Also include 'TM' in traffic management Exor RDI output.)
* [fixmystreet.com] Fix WestBerkshire cobrand.Matthew Somerville2017-03-17-1/+1
|
* Show loading indicator when loading pinspezholio2017-03-17-12/+28
|
* Merge branch 'fix-open311-json-output'Matthew Somerville2017-03-17-35/+26
|\
| * Remove superfluous lists from Open311 JSON output.Matthew Somerville2017-03-17-35/+26
| | | | | | | | | | | | | | The Open311 JSON output was wrapping each request parameter in a list. This was presumably to prevent the XML output including the parameters as attributes rather than children. A better way to fix this is to use the NoAttr parameter to XMLout which forces them to be children.
* | Merge branch 'reduce-the-stats-more'Matthew Somerville2017-03-17-9/+9
|\ \ | |/ |/|
| * Do upload_dir check on start up, not each report.Matthew Somerville2017-03-15-9/+9
| | | | | | | | | | If we're chugging through a list of reports, this save on a lot of pointless statting of the upload directory which we know is there.
* | Fix invisible segmented controls in old Webkit.Matthew Somerville2017-03-16-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I can't put it better than https://roland.codes/blog/legacy-flexbox-invisible-float-bug/ : "Webkit’s implementation of legacy Flexbox has an strange bug that makes flex items become invisible when they’re floated. What makes it strange is that the flex items will still take up space in the DOM, as if they have visibility: hidden applied. Usually you wouldn’t use float on flex items (the spec even says that float has no effect on them). But it’s useful for providing a fallback layout when Flexbox isn’t supported. Luckily I chanced on a hack that fixes the bug. All you have to do is give the floated flex items a position, like position: relative, and they’ll (strangely) become visible again. Another option is to use Modernizr to only apply the float when Flexbox isn’t supported. This bug affects legacy Flexbox in all Webkit browsers. Which includes Chrome 20-, Safari 6-, iOS 6.1- and Android 4.3-."
* | [fixmystreet.com] Remove friendly A/B test.Matthew Somerville2017-03-16-288/+0
|/ | | | This has been running for a year, added in e17eb20.
* Merge branch '1660-moderating-influence'Matthew Somerville2017-03-14-5/+29
|\
| * Use name at time of moderation, include superusersMatthew Somerville2017-03-14-4/+27
| | | | | | | | This works better if e.g. a user stops being associated with a body.
| * Store user object when deleting report.Matthew Somerville2017-03-14-1/+2
| |
* | Use sender in From if From and To domains match.Matthew Somerville2017-03-14-11/+36
| | | | | | | | | | | | To deal with a recipient mail server not allowing inbound email using the same domain as an internal domain, e.g. https://community.mimecast.com/docs/DOC-1419
* | Remove duplicate <> around envelope senders.Matthew Somerville2017-03-14-9/+6
|/
* Be clearer if no states selected is not all statesMatthew Somerville2017-03-10-2/+7
| | | | As with 1115f106, a default might not be everything.
* Allow superuser to leave update when inspecting.Matthew Somerville2017-03-10-1/+2
|
* Set up correct environment in cobrand PO script.Matthew Somerville2017-03-10-3/+11
| | | | Uses the same environment as gettext-extract.
* Add is_in_progress Problem helper.Matthew Somerville2017-03-10-4/+28
|
* Merge branch 'issues/forcouncils/171-filter-dropdown-all'Matthew Somerville2017-03-10-3/+5
|\
| * Specify options in 'all' status filter.Matthew Somerville2017-03-09-3/+5
| | | | | | | | | | A cobrand may have a blank default that isn't everything, so the "All reports" option must specify all the possible options.
* | Move staff-only JavaScript to separate file.Matthew Somerville2017-03-10-346/+362
| |
* | Merge branch 'issues/forcouncils/174-dupe-user-tweaks'Matthew Somerville2017-03-09-18/+22
|\ \
| * | Check cobrand users list when admin merging users.Matthew Somerville2017-03-09-1/+8
| | |
| * | Make sure emails are lowercased in admin.Matthew Somerville2017-03-09-17/+14
| |/
* | Add submit buttons to admin index search forms.Matthew Somerville2017-03-09-0/+17
| | | | | | | | Also slightly tidy up display.
* | Reduce unneeded admin CSS specificity.Matthew Somerville2017-03-09-47/+52
| |
* | Make sure report Ajax call is not cached by IE11.Matthew Somerville2017-03-09-1/+1
| | | | | | | | | | IE11 caches this Ajax call, not calling out to the server at all if it is made again (e.g. after an update has been made). Fixes #1638.
* | Refactor SendReport::Open311 to use cobrand hooks.Matthew Somerville2017-03-09-80/+391
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid doing cobrand-specific logic within SendReport::Open311. The hooks defined are: open311_config: set extra fields open311_pre_send: set endpoints and munge data These are tested in the new t/app/sendreport/open311.t, which does not send any actual reports, but just checks that all the data is munged into the expected format. (tests under t/open311* should already test the actual sending) Remove unused Open311 special cases.
* | [UK] Exclude Bristol from open311-populate-service-list.Matthew Somerville2017-03-09-1/+2
|/
* Bring changelog up to date.Matthew Somerville2017-03-03-0/+21
|
* Merge branch '1553-fms4c-contact-form'Matthew Somerville2017-03-03-34/+40
|\
| * [fixmystreet.com] Avoid /about/council redirects.Zarino Zappia2017-03-03-13/+13
| |
| * [fixmystreet.com] Clarify council contact form.Zarino Zappia2017-03-03-21/+27
| | | | | | | | | | | | | | | | | | | | * Tweak wording to make it clearer that the form is unsuitable for residents wanting to report street problems. * Record HTTP Referer when form is submitted, so we can see which pages are leading people to the FMS4C page. * Tidy up capitalisation elsewhere in headings on the page. Fixes #1553.
* | Add buttons to resize maps on report pagespezholio2017-03-02-12/+67
|/ | | | | | | | This improves usability on mobile devices, allowing users to pan around the problem and see the area in more detail. I've also changed the CSS around a bit, so we can use the `map-fullscreen` class in other places.
* Fix placeholder typo in French translation.Matthew Somerville2017-02-28-1/+1
|
* Only output appcache/manifest for shortlist users.Matthew Somerville2017-02-28-2/+8
| | | | The interception of 404s etc is too much of an inconvenience.
* Merge branch 'reduce-the-stats'Matthew Somerville2017-02-28-7/+2
|\
| * Assume photo ID given in database exists on disk.Matthew Somerville2017-02-28-6/+1
| | | | | | | | | | | | | | The list code was checking the photo ID given in the database existed on disk – this shouldn't ever not be the case, and if it was, all that would happen would be a broken image when the full photo code looks for it (this is only for e.g. lists of reports).
| * Do not re-stat non-existent files.Matthew Somerville2017-02-28-1/+1
| | | | | | | | | | The versioning code wasn't remembering when it had found that a file did not exist, so was checking for them each time.
* | Correct pluralise ‘days ago’ on problem last updateDave Arter2017-02-27-1/+1
| |
* | Merge branch 'issues/forcouncils/98-add-pretty-duration-to-report-list'Dave Arter2017-02-27-3/+51
|\ \ | |/ |/|
| * [Oxfordshire] Use 'days ago' format on problem listspezholio2017-02-27-3/+51
|/ | | | Fixes mysociety/fixmystreetforcouncils#98
* [Travis] Switch notification to Freenode.Matthew Somerville2017-02-20-1/+1
|
* Merge branch 'issues/forcouncils/168-stateful-sending-solution'Dave Arter2017-02-20-3/+4
|\
| * Reports need external_id to be included in RDI downloadDave Arter2017-02-20-0/+1
| | | | | | | | | | | | | | | | | | | | | | Reports in the generated Exor RDI file need to have an external_id so they can be linked to existing enquiries (PEMs) when the RDI is imported into Exor. There is a small window of opportunity for a report to be created, inspected and downloaded in an RDI before it's been sent to Exor via Open311 and had an external_id assigned. This commit closes that window by excluding reports from the RDI that don't have an external_id. Fixes mysociety/fixmystreetforcouncils#168
| * Send open reports regardless of current stateDave Arter2017-02-20-3/+3
|/
* Include /admin link on top-level nav for admin usersDave Arter2017-02-16-0/+4
| | | | Fixes mysociety/fixmystreetforcouncils#166
* [Oxfordshire] Open311 update timestamps should be in UTCDave Arter2017-02-15-1/+17
| | | | | | | | | | The timestamps returned from the database are in server-local time, not UTC. Because FMS expects timestamps in Open311 responses to be UTC, the timestamps of updates from OCC appear one hour ahead when DST is in effect. This commit converts the timestamps to UTC before outputting them. Fixes mysociety/FixMyStreet-Commercial#499
* Merge branch 'issues/forcouncils/127-exor-rdi-csv-output'Dave Arter2017-02-15-57/+483
|\
| * [Oxfordshire] Add Exor RDI file download featureDave Arter2017-02-15-5/+342
| | | | | | | | | | | | | | | | | | | | The RDI file format encapsulates information about inspections that have taken place, and can be uploaded into Exor to create defects in bulk. This commit adds a page to the Oxfordshire cobrand's admin allowing RDI files to be generated and downloaded from FMS. For mysociety/fixmystreetforcouncils#127