mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
17 lines
455 B
Ruby
17 lines
455 B
Ruby
class HomeController < BaseController
|
|
layout 'darkswarm'
|
|
|
|
def index
|
|
if ContentConfig.home_show_stats
|
|
@num_distributors = Enterprise.is_distributor.activated.visible.count
|
|
@num_producers = Enterprise.is_primary_producer.activated.visible.count
|
|
@num_users = Spree::User.joins(:orders).merge(Spree::Order.complete).count('DISTINCT spree_users.*')
|
|
@num_orders = Spree::Order.complete.count
|
|
end
|
|
end
|
|
|
|
def sell
|
|
end
|
|
|
|
end
|