| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
| |
We add a way to process a template with no auto-escaping, that can be
used for the text parts of emails, and mark various HTML output as safe.
|
|
|
|
|
|
|
| |
This means any variable used in a template is automatically
HTML-escaped, unless it is marked as safe either in code by
using a SafeString, or in the template with the `mark_safe`
function or the `safe` filter.
|
|
|
|
|
|
|
|
|
|
|
| |
State display names are now got from the database wherever they are
displayed, including admin dropdowns, list filters, and update meta
statements. This also covers the open/closed/fixed 'groups'.
This also fixes a bug whereby if e.g. an update has problem_state
investigating, the next update has no problem_state, and the last
update has investigating again, it was previously showing a state
change to investigating on that third update.
|
|
|
|
|
| |
There were a couple of places where the three fixed states were all
displaying as "Fixed" in a dropdown.
|
| |
|
|
|
|
|
| |
The versioning code wasn't remembering when it had found that a file did
not exist, so was checking for them each time.
|
|
|
|
|
| |
fddf7f95 broke the use of minimized JS files, because it always used an
unchanged $url in the output. Make sure it is updated if $file is.
|
|
|
|
|
| |
Use a list to store JavaScript files, so it can be shared
between the HTML footer and the appcache manifest.
|
| |
|
|
|
|
|
|
| |
Reduce some duplicated code, and as a side effect gives HTML emails our
internal html_para filter, allowing single line returns in contact form
submissions.
|
|
|
|
|
| |
This lets you choose to e.g. minimize JS files during a deploy, without
making it mandatory as with the CSS.
|
|
|
|
| |
Double quoted string is needed for $1 and $2 to not be used exactly.
|
|
|
|
| |
Fixes #306.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 use of absolute URLs when in the admin.
Have the 404 handler spot static files in admin as a fallback.
|
|
|
|
|
|
| |
Catalyst::View::TT calls both c->log->error and c->error; the former
logs immediately, while the latter stashes the error, and then calls
c->log->error with it during finalize.
|
|
|
|
|
|
|
| |
This provides a ResponseTemplate model that an admin/staff
user can choose from when responding to problems.
For mysociety/FixMyStreet-Commercial#671.
|
|
|
|
| |
Add a site_name template parameter available to all templates.
|
|
|
|
| |
Remove the old CrossSell code. Fixes #972.
|
|
|
|
| |
This should reduce confusion with the Default cobrand and override order.
|
|
|
|
| |
Fixes #561.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Also revert cursor handling of Reports.pm; the DateTime inflation
appears to be a slowdown, and we were doing that anyway, and this way
makes things simpler in general. Will have a watch out for any
performance issue, but hopefully it should be fine.
|
| |
|
| |
|
|
|
|
| |
geocoding.
|
|
|
|
| |
somewhere.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
test to see welsh about us page
|