aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Template.pm
Commit message (Collapse)AuthorAgeLines
* Switch to default-escaped in email templates.Matthew Somerville2019-12-09-2/+5
| | | | | 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.
* Switch to default-escaped in templates.Matthew Somerville2019-12-09-3/+16
| | | | | | | 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.
* Ignore empty paragraphs in html_para.Matthew Somerville2019-11-08-1/+1
| | | | And do not generate them needlessly.
* Convert all single newlines, not only first.Matthew Somerville2018-08-31-1/+1
|
* Improve translatability of various pages.Dave Arter2017-03-30-1/+1
| | | | | | | | | | | | | This commit makes the following parts of the site translatable: - Social login buttons - Moderation UI - Offline glitch page & offline caching UI - Dashboard It also fixes a bug in the nget parser, stops some Oxfordshire bits being translated for the moment, and brings the translation file up to date.
* Use shared Template base for all templates.Matthew Somerville2016-09-20-0/+122
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.