Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Fix bug if test run c. 55 hours before BST starts. | Matthew Somerville | 2017-03-23 | -2/+2 |
| | | | | | | The code was adding two days and seven/eight hours to a floating DateTime, which from 5-7pm on 23rd March 2017 created a DateTime between 1-2am on 26th March which does not exist in e.g. the UK. | |||
* | Make sure all MapIt tests can run offline. | Matthew Somerville | 2017-03-23 | -9/+9 |
| | ||||
* | Add HTML email templates. | Matthew Somerville | 2016-08-01 | -42/+33 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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_create | Dave Arter | 2016-07-19 | -42/+14 |
| | | | | | 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 Somerville | 2016-06-20 | -4/+8 |
| | ||||
* | Conciser text on the email confirmation pages. | Zarino Zappia | 2015-09-17 | -6/+6 |
| | | | | | It’s best if Zurich keeps the old text, so now they have their own overrides for those template files. | |||
* | Alter token logging in and timeout behaviour. | Matthew Somerville | 2015-07-10 | -3/+5 |
| | | | | | | | Restrict email_sign_in token to one day, unused confirmation tokens to one month. Used tokens will redirect to the created thing but not log in; don't log in with alert links (unsubscribe link never expires, reply link will still show "reopen" tickbox). | |||
* | Tweak wording of area local alert email. | Matthew Somerville | 2015-02-25 | -1/+1 |
| | | | | Fixes #1011. | |||
* | Simplifed "confirmation-header" for success pages. | Zarino Zappia | 2015-02-19 | -4/+4 |
| | ||||
* | By default, use area-based alerts. | Matthew Somerville | 2014-12-12 | -3/+3 |
| | | | | | | | | | 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. | |||
* | Update all email templates with new text. | Myfanwy Nixon | 2014-05-16 | -8/+123 |
| | | | | And FixMyStreet.com specific open questionnaire page. | |||
* | Add Cobrand config to include update date in email alerts | Struan Donald | 2014-04-08 | -0/+91 |
| | | | | | | | | | | | | | This is useful for sites where the updates aren't published on the site so you need a bit more context in the email alerts. Add inlude_time_in_update_alerts to default cobrand, off as default If this is set then the date is added after the name string in the email, passing in 'alert' as the type to dt_prettify in order to allow the cobrand to format it accordingly. This does require pulling out the alert confirmed time from the database in the send_alerts code where it wasn't before. | |||
* | Change default email indentation to none. | Matthew Somerville | 2014-03-17 | -1/+1 |
| | | | | | This is very old, no-one seems to want/need it any more, and more than one reuser does not want it. Fixes #715. | |||
* | Fix test suite to run regardless of config setup. | Matthew Somerville | 2013-10-24 | -16/+43 |
| | ||||
* | Use format_datetime for DBIx::Class searches to get rid of warnings when ↵ | Edmund von der Burg | 2013-09-05 | -9/+16 |
| | | | | running test suite | |||
* | Update test as alert email no longer sent in this case. | Matthew Somerville | 2013-06-19 | -21/+0 |
| | ||||
* | Test fix as the wards of Gloucestershire have changed. | Matthew Somerville | 2013-06-03 | -4/+4 |
| | ||||
* | Make sure bodies exist that redirects test for. | Matthew Somerville | 2013-02-04 | -0/+3 |
| | ||||
* | Delete users first off, in case broken test left them lying around or similar. | Matthew Somerville | 2013-02-04 | -6/+9 |
| | ||||
* | Rename council column to bodies_str, and all the related code. | Matthew Somerville | 2012-12-15 | -3/+3 |
| | ||||
* | Some fixes for when warnings are on during test run. | Matthew Somerville | 2012-11-09 | -1/+1 |
| | ||||
* | If update alert email is to problem reporter, make it a login link. | Matthew Somerville | 2012-10-12 | -4/+14 |
| | | | | | This is so they can more easily update, especially if the update they've just received has mistakingly 'fixed' the report. This fixes #7. | |||
* | don't penalise testers with short little names (like 'dave'): allow ↵ | Dave Whiteland | 2012-10-03 | -1/+1 |
| | | | | linebreaks in test match string (non public alerts) | |||
* | do no send alerts for non public reports | Struan Donald | 2012-09-04 | -0/+190 |
| | ||||
* | Don't show postcode column in RSS/alert emails, may have no bearing on report. | Matthew Somerville | 2012-07-23 | -1/+1 |
| | ||||
* | Merge branch 'master' into bromley | Matthew Somerville | 2012-05-23 | -18/+13 |
|\ | ||||
| * | Assume alert is not confirmed if not logged in. | Matthew Somerville | 2012-05-23 | -18/+13 |
| | | ||||
* | | Fixes and improvements for tests. | Matthew Somerville | 2012-05-16 | -0/+1 |
|/ | ||||
* | allow for whitespace/text-wrap in tests | Dave Whiteland | 2012-05-02 | -1/+1 |
| | ||||
* | Fix test for when long domain name pushes things over one line. | Matthew Somerville | 2012-01-06 | -1/+1 |
| | ||||
* | make the test and description match | Struan Donald | 2011-11-29 | -1/+1 |
| | ||||
* | add in postcode to email alert titles | Struan Donald | 2011-11-28 | -1/+2 |
| | ||||
* | Don't use update name if marked as anonymous. | Matthew Somerville | 2011-07-16 | -0/+17 |
| | ||||
* | If logged in, don't show email on alert sign up. | Matthew Somerville | 2011-06-28 | -53/+20 |
| | ||||
* | Sign in over login; tidy CSS. | Matthew Somerville | 2011-06-24 | -3/+3 |
| | ||||
* | Stop empty string warning, delete some test users, and use same n/a string ↵ | Matthew Somerville | 2011-06-09 | -0/+5 |
| | | | | as elsewhere. | |||
* | Fix alert subscribing bugs with two-tier councils and on ReportEmptyHomes. | Matthew Somerville | 2011-06-06 | -0/+27 |
| | ||||
* | Migrate alert sending script, add test for it, fix some small bugs and strings. | Matthew Somerville | 2011-06-04 | -21/+120 |
| | ||||
* | only confirm alerts on submission if user is logged in | Struan Donald | 2011-05-27 | -14/+37 |
| | | | also, tests to make sure we send out emails if a logged in user subscribes with a different address | |||
* | use moose role for is_from_abuser method | Struan Donald | 2011-05-26 | -0/+79 |
| | ||||
* | If the user already exists in the database then don't sent them a | Struan Donald | 2011-05-26 | -2/+7 |
| | | | | confirmation email when signing up to alerts | |||
* | problem update alert subscription | Struan Donald | 2011-05-12 | -5/+13 |
| | ||||
* | Automatically fill in email address of logged in user | Struan Donald | 2011-05-11 | -17/+68 |
| | ||||
* | tests for reusing existing users when creating an alert | Struan Donald | 2011-05-11 | -8/+51 |
| | ||||
* | moving alerts to use users instead of email in table | Struan Donald | 2011-05-11 | -6/+23 |
| | ||||
* | confirm alert subscription | Struan Donald | 2011-05-11 | -1/+10 |
| | ||||
* | test that we do not duplicate existing alerts | Struan Donald | 2011-05-10 | -0/+23 |
| | ||||
* | send out alert subscription email confirmations | Struan Donald | 2011-05-10 | -41/+55 |
| | ||||
* | local alert email signup | Struan Donald | 2011-05-10 | -0/+83 |