From 7d6dc34124680255d509f102d7e937e329fe0a4d Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Fri, 21 Apr 2017 15:50:18 -0700 Subject: [PATCH 1/2] Add breadcrumbs for price views --- backend/app/views/spree/admin/prices/edit.html.erb | 2 ++ backend/app/views/spree/admin/prices/index.html.erb | 1 + backend/app/views/spree/admin/prices/new.html.erb | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/backend/app/views/spree/admin/prices/edit.html.erb b/backend/app/views/spree/admin/prices/edit.html.erb index 5a7b78bf500..8d4cffa9c32 100644 --- a/backend/app/views/spree/admin/prices/edit.html.erb +++ b/backend/app/views/spree/admin/prices/edit.html.erb @@ -1,4 +1,6 @@ <%= render 'spree/admin/shared/product_tabs', current: 'Prices' %> +<% admin_breadcrumb(link_to(plural_resource_name(Spree::Price), spree.admin_product_prices_url(@product))) %> +<% admin_breadcrumb(Spree.t('actions.edit')) %> <%= form_for @price, url: spree.admin_product_price_path(@product, @price) do |f| %>
diff --git a/backend/app/views/spree/admin/prices/index.html.erb b/backend/app/views/spree/admin/prices/index.html.erb index f5066eed15c..cd0692cf82b 100644 --- a/backend/app/views/spree/admin/prices/index.html.erb +++ b/backend/app/views/spree/admin/prices/index.html.erb @@ -1,4 +1,5 @@ <%= render 'spree/admin/shared/product_tabs', current: 'Prices' %> +<% admin_breadcrumb(plural_resource_name(Spree::Price)) %> <% content_for :page_actions do %>