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 @package_sources = Rails.configuration.package_sources end end