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 :)
This commit is contained in:
parent
a7e05b2b78
commit
87f545414f
38 changed files with 3341 additions and 156 deletions
|
|
@ -15,6 +15,10 @@ class PackagesController < ApplicationController
|
|||
@packages = @packages.page(params[:page]).per(12)
|
||||
end
|
||||
|
||||
def details
|
||||
@package = Package.find_by(name: params[:name])
|
||||
end
|
||||
|
||||
def with_screenshots
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,14 @@
|
|||
class WelcomeController < ApplicationController
|
||||
def index
|
||||
def home
|
||||
# TODO: show count depending on virtual host
|
||||
#@package_count = cache_or_set("debian_pkgcount", :expires => 10 * 60) do
|
||||
Package.count
|
||||
#end
|
||||
|
||||
# TODO: Use the package with the actual newest uploaded screenshot
|
||||
@newest_uploaded_package = Package.with_screenshots.first
|
||||
|
||||
# TODO: Use the actually most popular package and not just a random one
|
||||
@most_popular_package = Package.with_screenshots.first
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue