17 lines
485 B
Ruby
17 lines
485 B
Ruby
class WelcomeController < ApplicationController
|
|
def home
|
|
@newest_upload = Screenshot.where(approved: true).first
|
|
|
|
@most_popular_package = Package.with_screenshots.order(visits: :desc).first
|
|
|
|
@package_count = Package.count
|
|
|
|
@most_wanted_package = Package.without_screenshots.order(visits: :desc).first
|
|
end
|
|
|
|
def about
|
|
@package_sources = Rails.configuration.package_sources
|
|
@package_count = Package.count
|
|
@screenshot_count = Screenshot.count
|
|
end
|
|
end
|