Commit graph

53 commits

Author SHA1 Message Date
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
a153391615 Moved moderation code to new moderate controller 2016-04-14 16:49:17 +02:00
f12f61b23c Show progressbar on moderation screen 2016-04-08 18:25:53 +02:00
9bb9cf1f5d Added moderation, report and approval buttons for admins, uploaders and anonymous people 2016-04-07 18:44:12 +02:00
16999260ca Dropdown on details page allows image management for users and admins 2016-04-07 17:01:00 +02:00
263f6cd33f Allow users to delete their screenshots 2016-04-07 17:00:21 +02:00
fe8ae6feb7 Changed flash type to 'notice' 2016-04-07 16:59:26 +02:00
d70d2ee1ac Allow deleting screenshots for the user, too 2016-04-07 16:59:09 +02:00
48ca75cb64 Secured deletion/moderation of screenshots
Only logged in users can do that.
2016-03-04 12:32:41 +01:00
c87011ff84 Session token/IP based user authentication added 2015-06-14 12:33:18 +02:00
4dcbd365ff Writing log entry for each uploaded screenshot 2015-04-27 00:54:14 +02:00
19e51445fd Showing information about failure or success of image uploads 2015-04-27 00:21:08 +02:00
e8c4694ef0 Added validations for uploaded screenshots.
Checks if Paperclip complained about an invalid file (e.g. no PNG)
Checks if the upload is a duplicate.
2015-04-26 01:42:22 +02:00
707d327765 TODO added 2015-04-23 22:34:30 +02:00
0382c09361 Refactored packages controller. Tidied up a lot. Same functionality. 2015-04-23 17:22:48 +02:00
c085df9eed Implemented the /thumbnail/PACKAGE url
Returns a 160x120 thumbnail image if possible
Returns a dummy image and a 404 status code otherwise.
2015-04-19 12:56:58 +02:00
86e0a62c24 TODOs added 2015-04-19 11:33:41 +02:00
c691f60ef1 Cruft removed. 2015-04-19 01:10:57 +02:00
6b23f7d8e5 Upload of multiple screenshots works. 2015-04-18 23:40:16 +02:00
ec726ed62a Merge 2015-04-18 21:39:12 +02:00
1926d8c330 Removed cruft 2015-02-23 22:33:36 +01:00
b786ba24b0 Show all packages if search term is submitted empty 2015-02-23 22:33:09 +01:00
65f74e0568 Added simple feature to remove screenshots 2015-02-10 22:23:10 +01:00
60a183576c Uploading screenshots really works finally. :) 2015-02-10 16:54:06 +01:00
7451cca9cf Uploading screenshots works 2015-02-10 01:20:28 +01:00
23216cf38c Added jQuery file upload plugin 2015-01-13 22:49:28 +01:00
6204e1f89e Todo marks added 2014-12-31 17:33:21 +01:00
d701947c68 Began working on screenshot upload feature. 2014-12-31 17:17:01 +01:00
4ff64ab146 Show fewer images in package list view to reduce amount of data. 2014-12-29 14:54:27 +01:00
2b32fe58e9 Added dummy package upload actions and routing 2014-12-01 00:14:35 +01:00
29a8b611d4 Junk removed 2014-12-01 00:04:38 +01:00
f3a8b7c3a5 Search feature repaired 2014-11-30 23:20:26 +01:00
f940e96014 Packages grid/list view are different controller actions now 2014-11-30 19:25:21 +01:00
1c59a5ac74 Mostly fixed the packages list, grid and detail views 2014-11-30 16:07:28 +01:00
87f545414f Getting the project working again
Replace Twitter Bootstrap by Zurb Foundation
Used @import in SCSS instad of require_tree for proper order and use of variables like $debian_color
Moved old files out of the way (renamed them to xx*)
Welcome controller (/) works
Moved templates from ERB to SLIM format
Fixed database settings
Reduced routes to working ones
Tidied up Gemfile
Checked in experimental lab files

Tried to find a good description for this massive commit :)
2014-11-16 18:26:03 +01:00
8e9ff1ef80 Search query and display selection kept across pages and searches 2013-11-17 01:07:27 +01:00
2edcee06cd Handling the grid/list display in the view now 2013-11-14 00:19:12 +01:00
fde6a8dbb0 Using right search form parameter "search" 2013-11-13 23:24:34 +01:00
bc774c8b65 Simplified the grid and list view of packages 2013-11-12 22:58:36 +01:00
e3e1871a8f Better use of Rails' tag helpers. Added list view. 2013-08-25 23:38:50 +02:00
a5b31a2dcc Fixed eager loading of packages/screenshots 2013-08-21 23:24:07 +02:00
35510212ba Added package pagination using kaminari 2013-08-10 15:03:31 +02:00
9b9a4c7566 Removing crap 2013-08-08 23:14:28 +02:00
fca503df55 Order in building up the SQL query fixed 2013-08-08 21:49:46 +02:00
47b3253de3 Removed old useless code that was commented-out anyway. 2013-08-08 20:32:52 +02:00
950d48883c Using PostgreSQL's fulltext search feature 2013-08-08 20:23:01 +02:00
76d19f7e78 Unsuccessful attempt to properly eager load screenshots.
Currently the virtual attribute "image_url" in the screenshots model
apparently runs one SQL query each to get the packages data.
2013-08-07 00:18:20 +02:00
88dfb33721 Return results for packages only with screenshots.
Currently the packages controller is not working well. The JOIN is not
the best way apparently as the 'description' column exists for both the
"packages" and the "screenshots" table. So another way to query for
the data needs to be found.
2013-08-06 23:36:48 +02:00
31569ddd45 Improved data search query to match for results of any case 2013-08-06 22:34:48 +02:00