mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
17 lines
457 B
Ruby
17 lines
457 B
Ruby
class HomeController < BaseController
|
|
layout 'darkswarm'
|
|
|
|
before_filter :enable_embedded_shopfront
|
|
|
|
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::Order.complete.count('DISTINCT user_id')
|
|
@num_orders = Spree::Order.complete.count
|
|
end
|
|
end
|
|
|
|
def sell; end
|
|
end
|