mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
Conflicts: app/controllers/home_controller.rb app/views/producers/index.html.haml app/views/shared/menu/_mobile_menu.html.haml app/views/shop/products/_form.html.haml config/routes.rb spec/controllers/shops_controller_spec.rb
14 lines
324 B
Ruby
14 lines
324 B
Ruby
class HomeController < BaseController
|
|
layout 'darkswarm'
|
|
|
|
def index
|
|
@num_hubs = Enterprise.is_hub.count
|
|
@num_producers = Enterprise.is_primary_producer.count
|
|
@num_users = Spree::User.joins(:orders).count('DISTINCT spree_users.*')
|
|
@num_orders = Spree::Order.complete.count
|
|
end
|
|
|
|
def about_us
|
|
end
|
|
end
|