No description
Find a file
Christoph Haas e54d09a10b Show "Start uploading" button with rounded corner
Let's have all action buttons get rounded corners to make them clearer.
2015-04-27 00:19:03 +02:00
app Show "Start uploading" button with rounded corner 2015-04-27 00:19:03 +02:00
bin Added spring-pimped start scripts for rake, rails etc. 2015-04-23 14:58:30 +02:00
config Disabled annoying log lines from asset pipeline 2015-04-26 01:41:33 +02:00
db Added logs table to database schema 2015-04-27 00:18:09 +02:00
lib Changing Rake namespace to "debshots" 2015-04-27 00:17:21 +02:00
log Blank rails 4.0 project started 2013-07-27 00:19:29 +02:00
public Added dummy image for no-screenshots-available as SVG 2015-04-27 00:16:25 +02:00
test Adding Log model for database-based log messages 2015-04-27 00:15:55 +02:00
vendor/assets Missing asset for jQuery plugins added 2014-11-23 19:54:36 +01:00
.gitignore Ignoring Sublime Text workspace files 2015-04-18 23:04:41 +02:00
.project Aptana project file added 2013-11-16 23:53:17 +01:00
config.ru Blank rails 4.0 project started 2013-07-27 00:19:29 +02:00
debshots.komodoproject Komodo Edit project added 2013-11-13 23:23:39 +01:00
debshots2.sublime-project Added Sublime Text project 2015-04-18 23:04:12 +02:00
Gemfile Guard added 2015-04-23 14:59:23 +02:00
Gemfile.lock Gems updated 2015-04-26 01:41:48 +02:00
Guardfile Removed "rails s" from Guardfile 2015-04-24 12:20:06 +02:00
Rakefile Blank rails 4.0 project started 2013-07-27 00:19:29 +02:00
README.Developer Added hint on how to use logging 2015-04-27 00:13:50 +02:00
README.rdoc Removed documentation on Elasticsearch. 2015-04-23 17:23:26 +02:00

== Installing debshots

TODO

== Supported URL paths (aka routes)

/screenshots/:package_inital/:package/:(id)_:size.png
* package = name of the package
* id = numerical ID of the screenshot
* size = "large" or "small"
* Returns a PNG image of a screenshot
* Should be served as a static asset

/image/:(id)_:size.png
* id = numerical ID of the screenshot
* size = "large" or "small"
* Returns a PNG image of a screenshot
* Usually used for unapproved images that should just be shown to the uploader

/about
* Return an informational HTML page

/packages
* Return a list of packages with pagination

/packages/with_screenshots
* Return a list of packages with pagination
* Select only those packages that have screenshots.

/packages/without_screenshots
* Return a list of packages with pagination
* Select only those packages that do not have screenshots.

/packages/games_without_screenshots (deprecated)
* Return a list of packages with pagination
* Select only those packages that belong to Debian's "games" section

/json/packages
* Return a JSON data structure of all packages

/json/screenshots
* Return a JSON data structure containing packages and screenshots

/json/packages-without-screenshots
* Return a JSON data structure of those packages that do not have any screenshots

/packages/moderate
* Return a HTML page showing packages that need moderation
* Must only be available to logged in moderators

/upload
* Return a HTML page containing an upload form for new screenshots

/guidelines (deprecated)
* Return a HTML page showing general guidelines for creating screenshots
* Should just redirect to the /upload page

/upload/:package
* ??

/uploadfile
* ??

/login
* Show a login form

/logout
* Logout the user by invalidating the cookie session.

/package/:package
* Show details of a certain package

/json/package/:package
* Return a JSON data structure containing details of a certain package

/thumbnail/:package
/thumbnail-404/:package (deprecated)
* Return a small (160x120 pixel) PNG screenshot file of a package
* If the package does not have any screenshots then return a 404 code

/thumbnail-with-version/:package/:version
* Return a small (160x120 pixel) PNG screenshot file of a package
* If the package does not have any screenshots then return a 404 code
* Prefer screenshots of a certain version

/screenshot/:package
/screenshot-404/:package (deprecated)
* Return a small (320x240 pixel) PNG screenshot file of a package
* If the package does not have any screenshots then return a 404 code

/screenshot-with-version/:package/:version
* Return a large (320x240 pixel) PNG screenshot file of a package
* If the package does not have any screenshots then return a 404 code
* Prefer screenshots of a certain version

/delete_screenshot/:screenshot
* Users: request deletion of a screenshot
* Moderators: delete a screenshot

/approve_screenshot/:screenshot
* Users: 403
* Moderators: approve a screenshot

/keep_screenshot/:screenshot
* Users: 403
* Moderators: re-approve a screenshot that was requested for deletion

/rss
* Return an RSS feed of new uploads of screenshots