aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/breadcrumb_helper.rb
diff options
context:
space:
mode:
authorEdouard Maffert2016-05-13 12:51:09 +0200
committerEdouard Maffert2016-05-13 12:51:09 +0200
commit95ba9097b53fa4af11623f54f0c58685b12c545d (patch)
tree5ae612d21766e6b9e7acbc9f7bf8638cc346ab8e /app/helpers/breadcrumb_helper.rb
parent2e3c188411842480b84d3869707117f170fe8a54 (diff)
downloadchouette-core-95ba9097b53fa4af11623f54f0c58685b12c545d.tar.bz2
add breadcrumb for offer worbenches #827
Diffstat (limited to 'app/helpers/breadcrumb_helper.rb')
-rw-r--r--app/helpers/breadcrumb_helper.rb6
1 files changed, 6 insertions, 0 deletions
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