debshots/app/controllers/welcome_controller.rb
2014-12-01 00:14:18 +01:00

19 lines
516 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
def about
end
end