Statistics fixed
This commit is contained in:
parent
9024833921
commit
f36683f9d4
2 changed files with 3 additions and 11 deletions
|
|
@ -6,19 +6,12 @@ class WelcomeController < ApplicationController
|
|||
# TODO: Use the actually most popular package and not just a random one
|
||||
@most_popular_package = Package.with_screenshots.first
|
||||
|
||||
package_count
|
||||
@package_count = Package.count
|
||||
end
|
||||
|
||||
def about
|
||||
@package_sources = Rails.configuration.package_sources
|
||||
package_count
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
# TODO: show count depending on virtual host
|
||||
def package_count
|
||||
@package_count = Package.count
|
||||
@screenshot_count = Screenshot.count
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue