diff options
| author | Edouard Maffert | 2016-05-13 12:51:09 +0200 | 
|---|---|---|
| committer | Edouard Maffert | 2016-05-13 12:51:09 +0200 | 
| commit | 95ba9097b53fa4af11623f54f0c58685b12c545d (patch) | |
| tree | 5ae612d21766e6b9e7acbc9f7bf8638cc346ab8e /app/helpers/breadcrumb_helper.rb | |
| parent | 2e3c188411842480b84d3869707117f170fe8a54 (diff) | |
| download | chouette-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.rb | 6 | 
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 | 
