aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/breadcrumb_helper.rb
diff options
context:
space:
mode:
authorAlban Peignier2017-09-30 14:57:18 +0200
committerAlban Peignier2017-09-30 14:57:18 +0200
commitbf7cfda831faa3d92b355a8928fc0a7bc296f58b (patch)
treee2e949dc32db82ac4bae6a8f3e5edfd3488506cc /app/helpers/breadcrumb_helper.rb
parente1b15f5866ae142e447cf6478e9b93d3ad88971f (diff)
downloadchouette-core-bf7cfda831faa3d92b355a8928fc0a7bc296f58b.tar.bz2
Replace workbenches_path by root_path in BreadcrumbHelper. Refs #4655
Diffstat (limited to 'app/helpers/breadcrumb_helper.rb')
-rw-r--r--app/helpers/breadcrumb_helper.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/helpers/breadcrumb_helper.rb b/app/helpers/breadcrumb_helper.rb
index a3ee9de72..da1f270ab 100644
--- a/app/helpers/breadcrumb_helper.rb
+++ b/app/helpers/breadcrumb_helper.rb
@@ -75,13 +75,13 @@ module BreadcrumbHelper
end
def calendar_breadcrumb(action)
- add_breadcrumb I18n.t('breadcrumbs.referentials'), workbenches_path
+ add_breadcrumb I18n.t('breadcrumbs.root'), root_path
add_breadcrumb I18n.t('calendars.index.title'), calendars_path
add_breadcrumb @calendar.name if %i(show edit).include? action
end
def workbench_breadcrumb(action)
- add_breadcrumb I18n.t("breadcrumbs.referentials"), workbenches_path
+ add_breadcrumb I18n.t("breadcrumbs.root"), root_path
add_breadcrumb breadcrumb_label(@workbench), workbench_path(@workbench), :title => breadcrumb_tooltip(@workbench)
end
@@ -217,7 +217,7 @@ module BreadcrumbHelper
end
def import_breadcrumb (action)
- add_breadcrumb I18n.t("breadcrumbs.referentials"), workbenches_path
+ add_breadcrumb I18n.t("breadcrumbs.root"), root_path
add_breadcrumb breadcrumb_label(@workbench), workbench_path(@workbench), :title => breadcrumb_tooltip(@workbench)
add_breadcrumb I18n.t("breadcrumbs.imports"), workbench_imports_path(@workbench)
@@ -242,7 +242,7 @@ module BreadcrumbHelper
end
def compliance_control_sets_breadcrumb (action)
- add_breadcrumb I18n.t("breadcrumbs.referentials"), workbenches_path
+ add_breadcrumb I18n.t("breadcrumbs.root"), root_path
#add_breadcrumb breadcrumb_label(@workbench), workbench_path(@workbench), :title => breadcrumb_tooltip(@workbench)
end
@@ -264,7 +264,7 @@ module BreadcrumbHelper
end
def organisation_breadcrumb (action = :index)
- add_breadcrumb I18n.t("breadcrumbs.referentials"), workbenches_path
+ add_breadcrumb I18n.t("breadcrumbs.root"), root_path
add_breadcrumb breadcrumb_label(@organisation), organisation_path,:title => breadcrumb_tooltip(@organisation) unless action == :index
end