Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Respect cobrand updates_restriction when dealing with comments | Dave Arter | 2019-10-07 | -1/+1 |
| | | | | Allows limiting display, moderation and photos of comments. | |||
* | Improve non_public photo handling. | Matthew Somerville | 2019-05-07 | -4/+20 |
| | | | | | | | Clear the photo cache if the non_public flag is switched on, do not cache non_public or LOGIN_REQUIRED photos, remove non_public photos from memcached recent lists, pass through any cookies on non_public reports/updates, and check the non_public flag on photo lookup. | |||
* | No access to update photos on hidden reports. | Matthew Somerville | 2019-05-07 | -4/+5 |
| | ||||
* | Remove any use of `my $x if $foo`. | Matthew Somerville | 2019-01-14 | -1/+1 |
| | | | | | | | | As perlsyn says, "NOTE: The behaviour of a `my`, `state`, or `our` modified with a statement modifier conditional or loop construct (for example, `my $x if ...`) is undefined. The value of the `my` variable may be `undef`, any previously assigned value, or possibly anything else." | |||
* | Add option to symlink full size photos. | Matthew Somerville | 2018-11-14 | -4/+5 |
| | ||||
* | Add perl 5.26/5.28 support. | Matthew Somerville | 2018-10-04 | -0/+3 |
| | | | | | Upgrade a couple of modules, deal with '.' not present in @INC, captures returning undef rather than '', and a test. | |||
* | Handle failure of photo upload more gracefully | Dave Arter | 2018-09-28 | -2/+8 |
| | ||||
* | [Zurich] Allow publishing of individual photos. | Matthew Somerville | 2018-01-18 | -1/+1 |
| | | | | | When more than one photo has been uploaded, allow each one to be published/not independently. | |||
* | Test for Image::Magick installation better. | Matthew Somerville | 2016-08-01 | -1/+0 |
| | | | | (VERSION disappears in some recent version.) | |||
* | Don't allow photo IDs to be prepended with 0s. | Matthew Somerville | 2016-05-18 | -1/+1 |
| | ||||
* | Ignore empty entries in the image upload IDs. | Matthew Somerville | 2016-04-20 | -1/+1 |
| | ||||
* | Add PNG image support. | Matthew Somerville | 2016-04-08 | -7/+7 |
| | | | | | | | 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. | |||
* | Switch final few JSON uses to JSON::MaybeXS. | Matthew Somerville | 2016-02-09 | -3/+2 |
| | ||||
* | Factor multiple photo details into nicer function. | Matthew Somerville | 2016-01-12 | -62/+8 |
| | | | | | Remove get_photo_params, which only looked at the first photo, make explicit when we're doing that using `.first`. | |||
* | Remove most passing of Catalyst to PhotoSet. | Matthew Somerville | 2016-01-12 | -2/+2 |
| | ||||
* | Remove unnecessary code, as ID is always a number. | Matthew Somerville | 2016-01-06 | -6/+0 |
| | ||||
* | Add multiple photo upload support. | Zarino Zappia | 2015-12-16 | -1/+28 |
| | | | | | | | | | | Three file inputs, progressively enhanced with dropzone. This moves the photo input higher up, so that photos can upload while you're filling out the form. It standardises and improves photo error handling. [fixmystreet.com] Guidance for what photos should and shouldn’t include. | |||
* | Fix display of comment photos | Dave Arter | 2015-10-06 | -4/+24 |
| | | | | | These still use the old method of storing photos, not PhotoSet, and so don't have a get_photoset method. | |||
* | [Zurich] Use FMS::App->get_param() instead of req->param | Dave Arter | 2015-10-06 | -1/+1 |
| | ||||
* | [Zurich] 'photo required' functionality | Dave Arter | 2015-10-06 | -0/+39 |
| | | | | | | | | | | | - Save 'photo_required' value in Contact->extra from admin edit form - Enforce per-category photo requirement on new reports A new step has been added to the photo upload process that ensures a photo is present if any of the categories chosen for the report require it. If the photo is missing an error is displayed to the user in the same manner as if the photo upload was invalid. - Add test of mandatory photo categories | |||
* | Add support for multiple photos per report. | Hakim Cassimally | 2015-10-06 | -99/+29 |
| | | | | | | | | For Zurich, see mysociety/FixMyStreet-Commercial#664. This commit includes a new PhotoSet class (NB: called Model:: though not really a model), should handle binary data (e.g. old style photos in database), fileids (40-char hash), and Catalyst::Upload objects. | |||
* | Factor out all uses of param()/params. | Matthew Somerville | 2015-07-07 | -1/+1 |
| | | | | | | | Use a central get_param and get_param_list functions dependent on whether we're after a scalar or a list (almost always a scalar). This prevents any possibility of confusion where param() could return a list, or params->{} an arrayref. | |||
* | Have code fallback to Image::Size if no jhead. | Matthew Somerville | 2015-02-05 | -1/+6 |
| | | | | Don't bother installing it on Travis. | |||
* | Add fullsize photo to Photo controller | Chris Mytton | 2013-09-12 | -6/+8 |
| | | | | | This is used in the Zurich admin to view a full size version of the image before it has been made public. | |||
* | Fix admin photo display. | Matthew Somerville | 2013-05-15 | -4/+1 |
| | ||||
* | Allow photo display to admin users, as they might not be approved yet. | Matthew Somerville | 2013-05-15 | -1/+4 |
| | ||||
* | Check photo allowed on direct display. | Matthew Somerville | 2013-05-13 | -1/+3 |
| | ||||
* | Move to Digest::SHA, as ::SHA1 is no longer packaged in Debian. | Matthew Somerville | 2013-05-08 | -1/+1 |
| | ||||
* | Fix admin photo rotation. | Matthew Somerville | 2013-01-16 | -3/+0 |
| | ||||
* | Travis script. | Matthew Somerville | 2012-10-05 | -2/+1 |
| | ||||
* | Store compiled photos on file system. | Matthew Somerville | 2012-05-30 | -0/+6 |
| | ||||
* | Merge branch 'master' into bromley | Matthew Somerville | 2012-05-22 | -0/+91 |
|\ | | | | | | | | | | | Conflicts: bin/send-reports perllib/FixMyStreet/App/Controller/Report/New.pm | |||
| * | Allow through octet-stream uploads, catch error from jhead better. | Matthew Somerville | 2012-05-22 | -3/+5 |
| | | ||||
| * | Move photo processing functions to the photo controller. | Matthew Somerville | 2012-05-22 | -0/+88 |
|/ | ||||
* | Strip images before display (can shrink thumbnail from 60K to 4K). | Matthew Somerville | 2012-05-02 | -0/+2 |
| | ||||
* | Max 250 any side. | Matthew Somerville | 2012-03-15 | -2/+2 |
| | ||||
* | Merge branch 'redesign' | Matthew Somerville | 2012-03-14 | -10/+58 |
|\ | | | | | | | | | | | | | | | Conflicts: .gitignore notes/INSTALL perllib/FixMyStreet/App/Controller/Photo.pm perllib/FixMyStreet/Cobrand/FixMyStreet.pm | |||
| * | Store full size photos that are uploaded on filesystem, put hash in ↵ | Matthew Somerville | 2012-03-08 | -8/+38 |
| | | | | | | | | database. Fixes #9, basics for #209 (needs light box adding). | |||
| * | Factor out fragment rendering, as additional template paths needs to be passed. | Matthew Somerville | 2012-02-23 | -1/+1 |
| | | ||||
| * | Add fp argument to image script for front page thumbnails, for #226. | Matthew Somerville | 2012-02-22 | -3/+21 |
| | | ||||
* | | Use add() function so as not to have a leap day bug. | Matthew Somerville | 2012-02-29 | -2/+1 |
|/ | ||||
* | remove more hardcoded references to fixed | Struan Donald | 2011-06-21 | -1/+1 |
| | ||||
* | Adapt to Google's image bot requesting strange URLs - can't see them ↵ | Matthew Somerville | 2011-06-16 | -4/+13 |
| | | | | anywhere on the site... | |||
* | Return 404 rather than error from missing template. | Matthew Somerville | 2011-06-13 | -1/+2 |
| | ||||
* | Switch to using c->cobrand->problems to return all problems for a cobrand ↵ | Matthew Somerville | 2011-06-08 | -1/+1 |
| | | | | (so on Barnet only return Barnet problems). | |||
* | find() will always return result if unique key is given, so use search(). | Matthew Somerville | 2011-06-02 | -6/+14 |
| | ||||
* | emptyhome cobrand photos get resized for display | Struan Donald | 2011-05-23 | -2/+2 |
| | ||||
* | display comment photos | Struan Donald | 2011-05-19 | -2/+1 |
| | ||||
* | send out photo with correct headers | Struan Donald | 2011-05-19 | -1/+8 |
| | ||||
* | quick implementation of photo display controller | Struan Donald | 2011-05-16 | -0/+79 |