Commit graph

341 commits

Author SHA1 Message Date
91c2b327d1 Unused method removed 2016-07-13 14:22:38 +02:00
82003ca1bf Define cache expire times for JSON requests
JSON requests are very expensive. Make sure they are cached for long
enough.
2016-07-13 14:22:28 +02:00
df94be866e Creating user session only when uploading a screenshot
This makes responses usually cacheable.
2016-07-13 14:22:03 +02:00
773548afc3 Merge branch 'master' of git.workaround.org:chaas/debshots 2016-07-12 20:32:36 +02:00
c27942c60b Showing caption properly below the image 2016-07-12 20:31:33 +02:00
8bf26ea1a5 Added Javascript confirmation upon deleting images 2016-07-12 20:31:24 +02:00
bb79e109c2 Legacy upload method for images from Debshots 1.x implemented 2016-07-12 20:31:09 +02:00
8dc2514852 Added partial to display long description properly 2016-06-29 21:49:32 +02:00
73c2361471 Cruft removed 2016-06-29 21:48:25 +02:00
b3625f0a89 Missing jbuilder file added for /json/packages-without-screenshots 2016-06-28 17:12:56 +02:00
c0109eb6e7 json/packages-without-screenshots implemented 2016-06-28 17:09:17 +02:00
a90bb51b38 /json/packages and /json/screenshots implemented 2016-06-28 17:03:54 +02:00
b3d0b2dc06 JSON controller added. /json/package/:name implemented 2016-06-28 11:39:31 +02:00
0c439359b9 Adding DIV to make sure that the image caption is always below the image 2016-06-27 18:06:29 +02:00
c69a4270e9 Fixed dropdown to allow users to delete their own screenshots 2016-06-27 18:06:11 +02:00
54ee5d80a7 Cruft removed 2016-06-27 18:05:56 +02:00
205c624778 Delivering proper PNG 404 images for thumbnails and large images 2016-06-27 17:38:24 +02:00
d6bfba2e83 Added package views that got lost during renaming them 2016-06-27 16:00:57 +02:00
0c4a0d9a3a Joined thumbnail_with_version with thumbnail dev to remove redundant code 2016-06-27 16:00:28 +02:00
e864415a03 Docs added 2016-06-27 15:59:51 +02:00
04c5009b5d Simplification refactoring 2016-06-27 15:59:42 +02:00
bed96ed633 Renamed templates for list and grid view to avoid manual call of render() 2016-06-24 16:41:02 +02:00
bac90cbd2f Do not crash when sorting screenshots by version if the version is empty 2016-06-24 16:19:05 +02:00
9603550aab /thumbnail-with-version/package/version implemented 2016-06-24 16:18:36 +02:00
6feaa53920 Added Package.best_screenshot_for_version 2016-06-23 00:17:27 +02:00
a44efc8007 Prepared back link (still ugly) in details view 2016-06-22 18:10:33 +02:00
2d73e7a1b4 Do not show version in image caption 2016-06-22 18:10:23 +02:00
f2552736dc Drop shadow added to images in details view 2016-06-22 18:10:06 +02:00
7914d09676 Dealing with empty/nil version/description fields properly. 2016-06-22 18:09:41 +02:00
197c0a8b10 Screenshots were not sorted correctly by version - fixed 2016-06-21 17:55:34 +02:00
3be1846688 Added Package.screenshots_sorted_by_version 2016-06-21 16:54:10 +02:00
c2fe896cbc Show version along with description as screenshot caption 2016-06-21 16:53:42 +02:00
458d1b668d Boolean logic glitch fixed for when to return a 404 2016-06-16 10:45:11 +02:00
5d856c61e6 Properly return a 404 if an existing package has no screenshot 2016-06-16 10:42:04 +02:00
6002cd56e0 Authlogic cruft removed 2016-06-14 17:04:43 +02:00
e5ceab72a9 Show newest screenshots first 2016-06-13 17:57:03 +02:00
9db16ab357 Consider reported screenshots for pending for moderation 2016-06-13 17:56:50 +02:00
cecb5f47cc Showing reason why a screenshot was reported 2016-06-13 17:56:26 +02:00
5bffa5dfbb Using redirect_to :back 2016-06-13 17:56:12 +02:00
0d3dfdff94 Moved approve_screenshot to packages controller 2016-06-13 17:55:59 +02:00
e46f2a3dff Fixed query for screenshots to be moderated (fixes division by zero) 2016-06-13 17:55:38 +02:00
bd3167b699 Removed useless method approve_screenshot from moderate controller 2016-06-13 17:55:05 +02:00
174a2567df Moderation view fixed. 2016-06-13 17:54:37 +02:00
34c5af8684 Package names removed as arguments. screenshot.id is sufficient 2016-06-13 17:54:19 +02:00
b30794884f screenshot.adminstatus added, debug info removed from admin dropdown 2016-06-06 15:56:16 +02:00
3da2f68938 Improved moderation page 2016-06-05 23:06:22 +02:00
df74c9e014 Moved screenshot approval code into model 2016-06-05 23:06:04 +02:00
7e883eef9d Two-column view of to-be-moderated and already-published screenshots 2016-05-18 18:40:24 +02:00
d0d9977cc2 Search for both unapproved and markedfordelete screenshots 2016-05-18 18:40:07 +02:00
a9ee2ab79d Renamed class to match Foundation 6 2016-05-18 18:39:35 +02:00