From 95ba9097b53fa4af11623f54f0c58685b12c545d Mon Sep 17 00:00:00 2001 From: Edouard Maffert Date: Fri, 13 May 2016 12:51:09 +0200 Subject: add breadcrumb for offer worbenches #827 --- app/helpers/breadcrumb_helper.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/helpers/breadcrumb_helper.rb') diff --git a/app/helpers/breadcrumb_helper.rb b/app/helpers/breadcrumb_helper.rb index 3c595f86b..aebd242be 100644 --- a/app/helpers/breadcrumb_helper.rb +++ b/app/helpers/breadcrumb_helper.rb @@ -56,6 +56,8 @@ module BreadcrumbHelper organisation_breadcrumb action when "Api::V1::ApiKey" referential_breadcrumb + when "OfferWorkbench" + offer_workbench_breadcrumb action else Rails.logger.info "---------" Rails.logger.info ">>>>>>> "+resource_class.to_s+" unmapped" @@ -64,6 +66,10 @@ module BreadcrumbHelper end end + def offer_workbench_breadcrumb(action) + add_breadcrumb I18n.t("breadcrumbs.referentials"), referentials_path + add_breadcrumb breadcrumb_label(@offer_workbench), offer_workbench_path(@offer_workbench), :title => breadcrumb_tooltip(@offer_workbench) + end def network_breadcrumb(action) referential_breadcrumb -- cgit v1.2.3