17 lines
530 B
Ruby
17 lines
530 B
Ruby
class WelcomeController < ApplicationController
|
|
def home
|
|
# 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
|
|
|
|
@package_count = Package.count
|
|
end
|
|
|
|
def about
|
|
@package_sources = Rails.configuration.package_sources
|
|
@package_count = Package.count
|
|
@screenshot_count = Screenshot.count
|
|
end
|
|
end
|