aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/View
Commit message (Collapse)AuthorAgeLines
* Do not re-stat non-existent files.Matthew Somerville2017-02-28-1/+1
| | | | | The versioning code wasn't remembering when it had found that a file did not exist, so was checking for them each time.
* Fix use of .auto.min.js files.Matthew Somerville2016-12-16-1/+1
| | | | | 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.
* Add offline support of static files/fallback page.Matthew Somerville2016-12-16-2/+3
| | | | | Use a list to store JavaScript files, so it can be shared between the HTML footer and the appcache manifest.
* Add ability for admin users to italic updates.Matthew Somerville2016-10-28-0/+18
|
* Use shared Template base for all templates.Matthew Somerville2016-09-20-92/+8
| | | | | | 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.
* Prefer using an auto.min.js file if present/newer.Matthew Somerville2016-08-16-4/+14
| | | | | This lets you choose to e.g. minimize JS files during a deploy, without making it mandatory as with the CSS.
* Fix issue with add_links not interpolating.Matthew Somerville2016-08-15-1/+1
| | | | Double quoted string is needed for $1 and $2 to not be used exactly.
* Convert single newlines in text to <br>s.Matthew Somerville2016-08-12-0/+16
| | | | Fixes #306.
* Switch link adding to use double quotes.Matthew Somerville2016-08-12-3/+2
|
* Switch add_links template function to filter.Matthew Somerville2016-08-12-4/+4
|
* Add HTML email templates.Matthew Somerville2016-08-01-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Make sure map JS works through an admin proxy.Matthew Somerville2016-07-04-1/+2
| | | | | Tidy up use of absolute URLs when in the admin. Have the 404 handler spot static files in admin as a fallback.
* Prevent template errors from being logged twice.Matthew Somerville2015-10-09-1/+10
| | | | | | 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.
* [Zurich] Response templates for report admin.Hakim Cassimally2015-10-06-0/+3
| | | | | | | This provides a ResponseTemplate model that an admin/staff user can choose from when responding to problems. For mysociety/FixMyStreet-Commercial#671.
* Remove remaining hardcoded site name from strings.Matthew Somerville2015-09-28-3/+3
| | | | Add a site_name template parameter available to all templates.
* Add new "next steps" to bottom of success pages.Zarino Zappia2015-02-19-15/+1
| | | | Remove the old CrossSell code. Fixes #972.
* Rename 'default' web directory to 'base'.Matthew Somerville2014-07-08-1/+1
| | | | This should reduce confusion with the Default cobrand and override order.
* Add a view-configuration admin page.Matthew Somerville2013-09-19-1/+7
| | | | Fixes #561.
* Insert spaces into printed links.Matthew Somerville2013-02-11-2/+7
|
* Committed by mistake.Matthew Somerville2013-02-11-1/+1
|
* Couple of Bromley council references missed in merge.Matthew Somerville2013-02-11-0/+1
|
* Stop changing DateTimes to epochs and back.Matthew Somerville2013-01-25-6/+6
| | | | | | | 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.
* Travis script.Matthew Somerville2012-10-05-0/+1
|
* Remove unused cobrand function.Matthew Somerville2012-08-16-3/+1
|
* Cobrand specific example front page placeholder, start of layout tweaks, fix ↵Matthew Somerville2012-03-22-0/+1
| | | | geocoding.
* If on staging site, look up last mod time of file each time, if cached ↵Matthew Somerville2012-01-10-1/+1
| | | | somewhere.
* Version the JS files.Matthew Somerville2011-09-02-6/+6
|
* Versioning of CSS files, remove generated CSS files from repo.Matthew Somerville2011-09-02-1/+11
|
* Reduce size of JS output strings.Matthew Somerville2011-08-17-0/+21
|
* Compile templates and set a long stat TTL in production.Matthew Somerville2011-08-11-0/+2
|
* Escape JS string better.Matthew Somerville2011-07-04-0/+22
|
* Removal of old Cobrand.pm and last .Matthew Somerville2011-06-07-6/+1
|
* Final bits of Page.pm gone.Matthew Somerville2011-06-07-2/+3
|
* Get rid of some more fake_q etc.Matthew Somerville2011-06-06-1/+1
|
* Pull requests #103 and #107, clickable-urls-in-reports, done as a TT function.Matthew Somerville2011-05-27-14/+9
|
* Questionnaire submission code.Matthew Somerville2011-05-26-6/+6
|
* add split_into_lines methodStruan Donald2011-05-17-0/+24
|
* Port display_locationEdmund von der Burg2011-04-13-1/+19
|
* added newsletter sign upEdmund von der Burg2011-04-07-2/+8
|
* Handle problem confirmation tokens in catalyst and get all tests workingEdmund von der Burg2011-03-28-0/+15
|
* use .txt suffix on email templatesEdmund von der Burg2011-03-23-1/+1
|
* Add more utility functionsEdmund von der Burg2011-03-21-1/+27
|
* Check that UTF8 in emails worksEdmund von der Burg2011-03-03-0/+2
|
* Simple email sendingEdmund von der Burg2011-03-02-2/+43
|
* More work on the Cobrand and setting for requestEdmund von der Burg2011-02-23-3/+4
| | | | test to see welsh about us page
* Added About controllerEdmund von der Burg2011-02-23-1/+18
| | | | | put 'loc' stub in place for i18n in templates server static files
* Move default templates to 'default' dir so that we can use allow cobrands to ↵Edmund von der Burg2011-02-23-1/+1
| | | | override them
* Added template handlingEdmund von der Burg2011-02-22-0/+27