aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/moderate.t
Commit message (Collapse)AuthorAgeLines
* Use name at time of moderation, include superusersMatthew Somerville2017-03-14-0/+18
| | | | This works better if e.g. a user stops being associated with a body.
* Return 400/500 for some client/server errors.Matthew Somerville2016-12-16-1/+2
|
* Allow user permissions to be granted/revoked in adminDave Arter2016-08-17-0/+1
|
* Direct report moderated emails correctly.Matthew Somerville2016-08-10-5/+9
|
* Add HTML email templates.Matthew Somerville2016-08-01-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Use improved TestMech::create_user_ok instead of User::find_or_createDave Arter2016-07-19-3/+1
| | | | | This improves create_user_ok to work more like create_body_ok where extra params can be passed in and set on the model.
* Improve CSRF tokens and add to more forms.Matthew Somerville2016-06-20-37/+39
|
* Add support for multiple photos per report.Hakim Cassimally2015-10-06-6/+4
| | | | | | | | For Zurich, see mysociety/FixMyStreet-Commercial#664. This commit includes a new PhotoSet class (NB: called Model:: though not really a model), should handle binary data (e.g. old style photos in database), fileids (40-char hash), and Catalyst::Upload objects.
* Version 1.5.2.v1.5.2Matthew Somerville2014-12-17-0/+12
| | | | | | | Includes: * [UK] Don't show topic form field when reporting abuse. * Use token in moderation response URL to prevent hidden report leak. * Make sure successful submission page is full width.
* By default, use area-based alerts.Matthew Somerville2014-12-12-2/+2
| | | | | | | | | The body-based alert only works if the body ID matches the MapIt ID. This fixes #959. Further work needs to be done to enable proper body-based alerts that work properly in all circumstances. Consequently, factor out fixed body IDs from many tests. Also fix a couple of tests not overriding geocoder correctly.
* Tests for moderationHakim Cassimally2014-08-14-0/+325