aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/breadcrumb_helper.rb
diff options
context:
space:
mode:
authorXinhui2016-12-28 11:09:00 +0100
committerXinhui2016-12-28 11:09:20 +0100
commitb6129f04b5f9b5a4c325c43d1a13b0e9b7d48647 (patch)
tree3fa7a506efce060f241ff88198d945059ec352b7 /app/helpers/breadcrumb_helper.rb
parent2b20966f6ea209765bc3f113345334128f54b465 (diff)
downloadchouette-core-b6129f04b5f9b5a4c325c43d1a13b0e9b7d48647.tar.bz2
Templating CRUD imports
Refs #2261
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 dc68bd897..7ef418af1 100644
--- a/app/helpers/breadcrumb_helper.rb
+++ b/app/helpers/breadcrumb_helper.rb
@@ -208,14 +208,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)