aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
Commit message (Collapse)AuthorAgeLines
* Fetch MapQuest images via HTTPS rather than HTTPJon Kristensen2016-09-07-5/+5
|
* Merge branch 'issues/forcouncils/60-mapping-layer'Matthew Somerville2016-09-06-0/+2
|\
| * [Oxfordshire] Set map type to OSM.Matthew Somerville2016-09-06-0/+2
| |
* | Add inspector report detail viewDave Arter2016-09-06-9/+171
|/ | | | | | | | | | | | | Users with the `report_inspect` permission can click a new 'inspect' button on a report page to input more detailed problem information into a new form that appears in a column alongside the report detail. - Inspector data is stored in problem's 'extra' field - Report category/state can be edited - Location can be changed by dragging the pin or HTML5 geolocation (Factored out Zurich admin pin drag into own function) For mysociety/fixmystreetforcouncils#22
* [Zurich] Call add_links filter correctlyDave Arter2016-09-06-2/+2
| | | | Fixes a bug with updates not being displayed correctly in the app.
* Automatically spot Open311 co-ord/ID attributes.Matthew Somerville2016-08-24-41/+41
|
* Pass back Open311 request through send_reports for tests.Matthew Somerville2016-08-24-10/+20
|
* Allow user to have an area assigned in adminDave Arter2016-08-22-3/+42
|
* Allow searching for reports with ref: prefix in postcode fieldDave Arter2016-08-22-0/+38
| | | | | | | | | 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
* Add user planned reports.Matthew Somerville2016-08-22-17/+178
| | | | | | 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.
* Get contribution state from server with map click.Matthew Somerville2016-08-19-0/+10
| | | | This makes sure the correct dropdown is shown.
* Merge branch 'harrogate-zurich-fixes'Matthew Somerville2016-08-17-7/+6
|\
| * [Zurich] Fix server side map tile URL generation.Matthew Somerville2016-08-17-5/+4
| | | | | | | | | | | | @scales does not include the hidden zoom levels, so we need to offset the matrix ID to be correct in the URL but not do so to calculate the tile row and column.
| * Fix typo in WMTS number of zoom levels.Matthew Somerville2016-08-17-2/+2
| |
* | Restrict admin config/stats pagesDave Arter2016-08-17-22/+36
| | | | | | | | | | The config page is only accessible by superusers. The stats page only shows figures for the user’s from_body unless superuser.
* | Allow user permissions to be granted/revoked in adminDave Arter2016-08-17-3/+67
| |
* | Restrict from_body editing to superusersDave Arter2016-08-17-1/+9
| | | | | | | | | | | | | | Superusers can set a user's from_body to any value, but a normal staff user can only set another user's from_body to the same as their own or undefined. This is presented in the UI as a 'staff' tickbox.
* | Restrict user editing in adminDave Arter2016-08-17-3/+60
| | | | | | | | | | | | | | | | The 'user_edit' permission is required to edit users. The admin pages on UK council cobrands only allow editing of users whose from_body is the same as the logged-in user, or who have sent reports or updates to the council.
* | Require 'report_edit' permission for editing reports in adminDave Arter2016-08-17-0/+7
|/
* [fixmystreet.com] Add Content-Security-Policy.Matthew Somerville2016-08-16-1/+9
|
* Prefer using an auto.min.js file if present/newer.Matthew Somerville2016-08-16-4/+14
| | | | | This lets you choose to e.g. minimize JS files during a deploy, without making it mandatory as with the CSS.
* Remove unused category_extras_json code.Matthew Somerville2016-08-16-1/+0
|
* Fix issue with add_links not interpolating.Matthew Somerville2016-08-15-1/+1
| | | | Double quoted string is needed for $1 and $2 to not be used exactly.
* Prevent error if latitude or longitude of 0 given.Matthew Somerville2016-08-15-1/+1
|
* Fix a crash on /admin/timelineDave Arter2016-08-15-2/+2
| | | | | The 'created' and 'state' column names are shared between the 'problem' and 'comment' tables, and this was causing ambiguous column references in the SQL.
* Fix invalid SQL being generated by moderation lookupDave Arter2016-08-15-2/+2
|
* Remove some unused code/ database handle.Matthew Somerville2016-08-12-29/+1
|
* Convert single newlines in text to <br>s.Matthew Somerville2016-08-12-0/+16
| | | | Fixes #306.
* Switch link adding to use double quotes.Matthew Somerville2016-08-12-3/+2
|
* Switch add_links template function to filter.Matthew Somerville2016-08-12-4/+4
|
* Direct report moderated emails correctly.Matthew Somerville2016-08-10-7/+3
|
* Merge branch '1474-absolutely-fabulous'Matthew Somerville2016-08-10-12/+12
|\
| * Make UPLOAD_DIR/GEO_CACHE relative to project rootMatthew Somerville2016-08-10-12/+12
| | | | | | | | | | If they are absolute already, do nothing. Switch a couple of uses to Path::Tiny as well.
* | Merge branch 'issues/forcouncils/10-report-as-dropdown'Matthew Somerville2016-08-10-11/+83
|\ \ | |/ |/|
| * Feature to create report as body/other user.Zarino Zappia2016-08-10-11/+83
| | | | | | | | | | | | | | | | | | | | | | | | This allows users who have the correct permissions to add reports on behalf of the body or another user. We enable editing of the email box by default, so that if JavaScript isn't available, someone can still change the email for the 'another user' option. For mysociety/fixmystreetforcouncils#10 and mysociety/fixmystreetforcouncils#11
* | Don't error if static map tile fetch fails.Matthew Somerville2016-08-10-3/+14
| | | | | | | | Also don't fetch tiles if running tests.
* | Add config for Open311 request limit, default 1000.Matthew Somerville2016-08-10-3/+4
| | | | | | | | Fixes #1313.
* | Do not send alerts for hidden reports.Matthew Somerville2016-08-10-0/+2
| | | | | | | | Fixes #1461.
* | Generate unique config per test run.Matthew Somerville2016-08-09-1/+16
|/ | | | | | | | This allows multiple test suites to run simultaneously (beforehand, a second run would overwrite the same config file and lose its database connection). Clean up the created config file on exit.
* Merge branch '1469-html-email-fixes'Matthew Somerville2016-08-08-1/+2
|\
| * Log failure to send email.Matthew Somerville2016-08-08-1/+2
| |
* | Fix other "keys on reference" warning.Matthew Somerville2016-08-08-1/+1
|/ | | | This is a continuation of b45b29c8.
* [East Sussex] Remove East Sussex cobrandDave Arter2016-08-02-134/+0
|
* Add HTML email templates.Matthew Somerville2016-08-01-63/+270
| | | | | | | | | | | | | | | | | | | | | | | | Design is all Zarino. This adds the ability to send HTML emails, including attached inline images. When included, this is done as a multipart/related email containing a multipart/alternative (of plain and HTML) and any attached images, so that the images are available even if HTML mail is not. The alert emails list data has been improved so it can be constructed in the templates rather than the code. Various templates have been tidied. Various workarounds for email clients have been made, including: * <th> is used so that the Android 4.x mail client can give them `block` styling in the small screen media query. * Font settings defined on every table cell (<th>) so that sans-serif fonts are used in Outlook, rather than Times New Roman. * A three-column wrapper table to create a 620px centred content area that also shrinks down on narrow screens. (Outlook doesn’t like max-width, so this is the simplest alternative.) * Enforcing a sensible (500px) min-width for the main content area, on clients that don’t support media queries (eg: native Gmail app). * Giant borders on buttons so Outlook displays them * Image alignment with align rather than float.
* Add static map output view for a report.Matthew Somerville2016-08-01-13/+113
|
* Move photoset stuff to new Role.Matthew Somerville2016-08-01-42/+39
|
* Test for Image::Magick installation better.Matthew Somerville2016-08-01-6/+10
| | | | (VERSION disappears in some recent version.)
* [Zurich] Send admin emails from the do-not-reply addressDave Arter2016-07-28-4/+3
| | | | | Also takes the opportunity to fix the incorrectly-encoded sender name which was appearing to some clients as "Züri Wie Neu".
* Refactor map pin/feature functions.Matthew Somerville2016-07-21-101/+73
|
* Fix crash on /my page due to missing pin.problemDave Arter2016-07-21-0/+1
|