mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-20 04:59:16 +00:00
Split dashboard into single and multiple enterprise views
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
%h1{ :style => 'margin-bottom: 30px'} Dashboard
|
||||
|
||||
- if @enterprises.unconfirmed.any?
|
||||
|
||||
= render partial: "unconfirmed"
|
||||
|
||||
%hr
|
||||
|
||||
- if @enterprises.empty?
|
||||
|
||||
= render partial: "enterprises"
|
||||
|
||||
- else
|
||||
|
||||
- if can? :admin, Spree::Product
|
||||
= render partial: "products"
|
||||
|
||||
%div.two.columns
|
||||
|
||||
|
||||
- if can? :admin, OrderCycle
|
||||
= render partial: "order_cycles"
|
||||
|
||||
= render partial: "enterprises"
|
||||
@@ -0,0 +1,17 @@
|
||||
-# - if @enterprise.sells == "unconfirmed"
|
||||
-# %h1 Welcome to the Open Food Network
|
||||
|
||||
|
||||
- if @enterprise.is_primary_producer
|
||||
// Basic Producer
|
||||
|
||||
// Producer with Shopfront
|
||||
|
||||
// Coming soon - Full Hub
|
||||
// Email us if you want this option
|
||||
|
||||
- else
|
||||
// Shop Profile
|
||||
|
||||
// Coming soon - Full Hub
|
||||
// Email us if you want this option
|
||||
@@ -1,24 +0,0 @@
|
||||
%h1{ :style => 'margin-bottom: 30px'} Dashboard
|
||||
|
||||
- if @enterprises.unconfirmed.any?
|
||||
|
||||
= render partial: "spree/admin/overview/unconfirmed"
|
||||
|
||||
%hr
|
||||
|
||||
- if @enterprises.empty?
|
||||
|
||||
= render partial: "spree/admin/overview/enterprises"
|
||||
|
||||
- else
|
||||
|
||||
- if can? :admin, Spree::Product
|
||||
= render partial: "spree/admin/overview/products"
|
||||
|
||||
%div.two.columns
|
||||
|
||||
|
||||
- if can? :admin, OrderCycle
|
||||
= render partial: "spree/admin/overview/order_cycles"
|
||||
|
||||
= render partial: "spree/admin/overview/enterprises"
|
||||
Reference in New Issue
Block a user