Simplified the grid and list view of packages

This commit is contained in:
Christoph Haas 2013-11-12 22:58:36 +01:00
parent 728a9a952f
commit bc774c8b65
3 changed files with 31 additions and 21 deletions

View file

@ -1,6 +1,9 @@
Debshots::Application.routes.draw do
#get "packages/index"
get "packages" => "packages#index"
#get "packages" => "packages#index"
#get "packages/:page/:display" => "packages#index"
get "packages(/:page(/:display))" => "packages#index", defaults: { page: 1, display: 'grid' }
#get "packages(/:display)", to: "packages#index", defaults: { display: 'grid' }
get "packages/with_screenshots"
get "packages/without_screenshots"
get "packages/moderate"