Commit graph

695 commits

Author SHA1 Message Date
86bfff58f2 System test added to verify auto-approval of screenshots from moderators 2021-03-02 01:56:25 +01:00
2b24083653 SQL optimisation rolled back. It lead to access problems. 2021-03-01 02:07:55 +01:00
7227f769c0 Avoid displaying unapproved screenshots in Any view 2021-03-01 01:23:52 +01:00
ce9e1d8877 Typo that prevented deleting images 2021-03-01 01:02:39 +01:00
b36a49a6cd Avoid N+1 SQL queries with CanCanCan accessibility checks 2021-03-01 00:49:25 +01:00
f154c1838c Add ability to view approved screenshots for anonymous users 2021-02-28 22:42:28 +01:00
eee196507b Forgot to run tests 2021-02-28 22:07:33 +01:00
7004e14a88 Recovered moderate controller
It may not be necessary but deployment fails as it is refererred to from
other modules
2021-02-28 21:45:31 +01:00
7a3b65fe50 Authorisation management using CanCanCan added 2021-02-28 21:36:46 +01:00
51be4a4777 Two-column layout for login form 2021-02-28 02:37:26 +01:00
b7cc7ef4c0 Removed occurence of removed code 2021-02-28 02:09:29 +01:00
58f5eb11b9 Cruft of old Debian SSO code 2021-02-28 02:04:07 +01:00
d19196b266 Alpha feature hint 2021-02-28 02:03:56 +01:00
114ea469ee Info text on login page improved 2021-02-28 01:59:25 +01:00
bc507cbe39 Salsa login works 2021-02-27 23:50:51 +01:00
1f9187e35c Add ActionMailer to inform admins about new screenshots
This version only informs Christoph as a test
2021-02-25 02:43:14 +01:00
ae597a6235 Paperclip cruft removed 2021-02-25 00:14:17 +01:00
5ce1df07f3 Add default search order for screenshots 2021-02-24 23:50:31 +01:00
c6bea9b902 Add moderation hint below top bar 2021-02-24 23:47:30 +01:00
ec43f47f92 Show Moderate link in topbar. Add menu icons. 2021-02-24 19:18:19 +01:00
df855cd39b Prevent overflowing the flex grid 2021-02-21 21:29:42 +01:00
ff5643756e Removed auto-approve 2021-02-21 19:41:20 +01:00
15d18d50c2 Center cards properly in the surrounding box
Otherwise the box is not centered in "Newest Upload" on the title page.
2021-02-21 19:40:57 +01:00
24718c14b7 Added missing dependency 2021-02-21 17:08:35 +01:00
0b9ca67fde Rewording 2021-02-21 17:05:08 +01:00
c0144a79c7 Typo 2021-02-21 17:04:57 +01:00
2dcb931143 Renamed Contribute link to Upload
That may make it easier for casual visitors to understand.
2021-02-21 17:04:52 +01:00
5889f70a4d Don't show anything in list view if there is no long description 2021-02-21 16:43:57 +01:00
896cd533b4 minor improvement 2021-02-21 16:43:02 +01:00
940b3a16fa Slightly less ugly list view 2021-02-21 15:57:42 +01:00
8d66a2ede2 Limit the height of the long description in list view 2021-02-21 15:57:32 +01:00
c6296b882d Add support for env var DEBSHOTS_ALERT_MESSAGE
If that environment variable is set then it will display on every page.
2021-02-21 12:04:19 +01:00
1a21007068 Properly detect duplicate uploads 2021-02-21 11:38:53 +01:00
46352afc58 More dots-in-URLs-routing-issues workarounds 2021-02-21 11:12:53 +01:00
f68482f850 Simplification 2021-02-21 11:12:35 +01:00
b6e4bd8a99 Work around Rails expectations that forbid dots in parameters 2021-02-21 11:12:16 +01:00
75083eed6f Fix: show Delete button to admins 2021-02-20 22:27:22 +01:00
2297059e84 Trivial rewording 2021-02-20 22:24:41 +01:00
eaa81e45ed Fix card view. image class was missing. 2021-02-20 22:23:37 +01:00
b41c78abbf Add user hint to use Ctrl-V 2021-02-20 22:23:23 +01:00
0f20a53554 Allow Ctrl-V uploads from details and upload view 2021-02-20 22:23:10 +01:00
44a7f31bd4 Fixed broken maginifying glass effect 2021-02-20 21:49:16 +01:00
443f898ffd Cruft 2021-02-20 21:19:24 +01:00
6542ffbc19 Add JSON response for paste-uploads 2021-02-20 21:19:15 +01:00
e5b867fc16 JS display paste-upload errors directly 2021-02-20 21:18:47 +01:00
aaf22a34fb Cruft 2021-02-20 21:18:29 +01:00
9bd01ff30b Put striped background behind unapproved images 2021-02-20 21:18:17 +01:00
ecbc30cb6e Fixed selection criterion for newest upload 2021-02-20 16:41:41 +01:00
afe6f7ed7f Moved ctrl-v upload Javascript back to controller 2021-02-20 16:39:44 +01:00
aca9df2910 Allow uploads of images up to 8000x8000 but shrink to 2000x2000 2021-02-18 02:00:34 +01:00