aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/breadcrumb_helper.rb
diff options
context:
space:
mode:
authorXinhui2017-02-22 16:04:53 +0100
committerXinhui2017-02-22 16:04:53 +0100
commit77d4aca6f3328e7918077e7f6c32462cf95caa84 (patch)
tree1ea07d2e34fc3f07a177c12c243765294f7b1926 /app/helpers/breadcrumb_helper.rb
parentb88cd552930099714000393584355c314f045cb6 (diff)
parent15e221c2fe06ebd6ca18d7a392ab05f95b59be74 (diff)
downloadchouette-core-77d4aca6f3328e7918077e7f6c32462cf95caa84.tar.bz2
Merge branch 'refactoring_import'
Diffstat (limited to 'app/helpers/breadcrumb_helper.rb')
-rw-r--r--app/helpers/breadcrumb_helper.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/app/helpers/breadcrumb_helper.rb b/app/helpers/breadcrumb_helper.rb
index a382f1926..3a742d0dc 100644
--- a/app/helpers/breadcrumb_helper.rb
+++ b/app/helpers/breadcrumb_helper.rb
@@ -216,14 +216,10 @@ module BreadcrumbHelper
end
def import_breadcrumb (action)
- referential_breadcrumb
- add_breadcrumb Referential.human_attribute_name("imports"), referential_imports_path(@referential) unless action == :index
-
- add_breadcrumb @import.name, referential_import_path(@referential, @import.id) if @import
-
- #add_breadcrumb @rule_parameter_set.import.name, compliance_check_referential_import_path(@referential, @rule_parameter_set.import.id) if action == :rule_parameter_set
+ add_breadcrumb I18n.t("breadcrumbs.referentials"), referentials_path
+ add_breadcrumb breadcrumb_label(@workbench), workbench_path(@workbench), :title => breadcrumb_tooltip(@workbench)
+ add_breadcrumb I18n.t("breadcrumbs.imports"), workbench_imports_path(@workbench)
- #add_breadcrumb "Tests de conformité", compliance_check_referential_import_path(@referential, @compliance_check.id) if @compliance_check
end
def export_breadcrumb (action)