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 :)
14 lines
495 B
Ruby
14 lines
495 B
Ruby
class WelcomeController < ApplicationController
|
|
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
|