aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Script/Reports.pm
Commit message (Collapse)AuthorAgeLines
* Send open reports regardless of current stateDave Arter2017-02-20-2/+2
|
* Add cobrand call_hook fn, calls a fn if defined.Matthew Somerville2017-02-15-3/+1
|
* Move staging flags to their own config variable.Matthew Somerville2017-01-10-1/+1
|
* Send reports immediately from users with enough reputationDave Arter2016-09-23-1/+8
|
* Merge remote-tracking branch ↵Matthew Somerville2016-09-20-1/+1
|\ | | | | | | 'origin/issues/forcouncils/89-tidy-report-admin-actions'
* | Add ‘trusted’ flag allowing users to make reports directlyDave Arter2016-09-20-3/+8
|/ | | | | When a trusted user makes a report in a category that requires inspection, it'll be sent immediately (i.e. without being inspected first).
* Add ‘Inspection required’ field to categoriesDave Arter2016-09-09-0/+6
| | | | | | | | | | | Categories can now require reports to be marked as 'inspected' via the frontend before they're sent by send-reports. A side-effect here is that send-reports will perform an extra n queries for each report, where n is the number of bodies that report is being sent to, but hopefully in practice this won't matter as it's an offline cronjob. See mysociety/fixmystreetforcouncils#50
* Pass back Open311 request through send_reports for tests.Matthew Somerville2016-08-24-9/+12
|
* Add HTML email templates.Matthew Somerville2016-08-01-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Tidy up some UK specific easting/northing handlingMatthew Somerville2016-06-22-14/+2
|
* Use only one templating system for emails.Matthew Somerville2016-05-25-5/+4
| | | | | | | Historically, emails sent offline (alerts, questionnaires, etc) used a different templating system from those sent by the website (e.g. login emails), though the newer system was also being used for the site name and signature of offline emails.
* Remove some unused cobrands.Matthew Somerville2016-04-20-1/+1
|
* Merge remote-tracking branch 'origin/1302-support-pngs'Matthew Somerville2016-04-20-1/+1
|\
| * Add PNG image support.Matthew Somerville2016-04-08-1/+1
| | | | | | | | | | | | | | Store image type along with hash in photo column, and use that when outputting images / generating URLs. Make sure all public photo URL generation goes through appropriate functions, and change temp URLs so the filename can be output directly from the list.
* | Display used send method in debug line.Matthew Somerville2016-04-19-1/+1
|/ | | | | This may be a contact send method if devolved, or the default if none set on the body.
* Skip sending if any body marks it for skipping.Matthew Somerville2016-02-11-4/+3
| | | | | | | If a report was sent to multiple bodies, one of which was set to skip, (e.g. temporarily turned off due to receiving issues), then the code would still try and send the report due to the other bodies, leading to multiple sendings and an error for the skipped body.
* Add OpenStreetMap URL to report email.Matthew Somerville2016-02-09-0/+3
|
* Move main bin scripts to separate packages.Matthew Somerville2015-12-02-0/+313
Maintain old location wrappers.