mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-23 05:28:53 +00:00
Shifting dashboard rendering from partials to templates
This commit is contained in:
@@ -7,9 +7,9 @@ Spree::Admin::OverviewController.class_eval do
|
||||
|
||||
if spree_current_user.manages_one_enterprise?
|
||||
@enterprise = @enterprises.first
|
||||
render partial: "single_enterprise_dashboard"
|
||||
render "single_enterprise_dashboard"
|
||||
else
|
||||
render partial: "multi_enterprise_dashboard"
|
||||
render "multi_enterprise_dashboard"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -14,7 +14,7 @@ describe Spree::Admin::OverviewController do
|
||||
|
||||
it "renders the single enterprise dashboard" do
|
||||
spree_get :index
|
||||
response.should render_template partial: "_single_enterprise_dashboard"
|
||||
response.should render_template "single_enterprise_dashboard"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -24,7 +24,7 @@ describe Spree::Admin::OverviewController do
|
||||
|
||||
it "renders the multi enterprise dashboard" do
|
||||
spree_get :index
|
||||
response.should render_template partial: "_multi_enterprise_dashboard"
|
||||
response.should render_template "multi_enterprise_dashboard"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user