aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Script
Commit message (Collapse)AuthorAgeLines
* Remove duplicate <> around envelope senders.Matthew Somerville2017-03-14-5/+1
|
* 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
|
* [Oxfordshire] Old report archiving scriptpezholio2017-02-15-0/+141
| | | | | | | | | | | | | | | This script can be used for the bulk closure of old reports that haven't been updated in a long time. Reports that haven't been updated in a *really* long time (since 2014, by default) are simply closed, and those that haven't been updated since 2015 (by default) are closed and an email explaining the closure is sent to the report creator. This script can be used for other cobrands, but they'll need an archive.{txt,html} template in order for the emails to be sent. For mysociety/fixmystreetforcouncils#51
* 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
|
* Do not send alerts for hidden reports.Matthew Somerville2016-08-10-0/+2
| | | | Fixes #1461.
* Add HTML email templates.Matthew Somerville2016-08-01-28/+67
| | | | | | | | | | | | | | | | | | | | | | | | 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 normal user authentication to control access to /adminMatthew Somerville2016-07-19-0/+25
| | | | | | | | | - Adds is_superuser flag to User - Logged-in user must be a superuser or have from_body set in order to access anything within /admin - has_permission_to on a superuser will always return true - Only superusers can create/grant superusers - New `createsuperuser` command for creating superusers
* Tidy up some UK specific easting/northing handlingMatthew Somerville2016-06-22-14/+2
|
* Use only one templating system for emails.Matthew Somerville2016-05-25-14/+10
| | | | | | | 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.
* Fallback if request to Gaze fails.Matthew Somerville2016-05-18-3/+3
| | | | Fixes #1286.
* Remove some unused cobrands.Matthew Somerville2016-04-20-25/+9
|
* 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.
* Better handle replies to bounce addresses.Matthew Somerville2016-02-23-1/+6
| | | | | | | | | | Auto unsubscribe alert bounces, forward on report bounces and alert replies to support, and send through to report creator non-bounce replies to their report (for systems that ignore both the From and Reply-To headers). Also forward any totally unparsed bounce to support to possibly then adjust this bounce handling.
* 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/+723
Maintain old location wrappers.