diff options
| author | Alban Peignier | 2015-05-20 15:55:54 +0200 | 
|---|---|---|
| committer | Alban Peignier | 2015-05-20 15:57:13 +0200 | 
| commit | 31b66390ed9811105f3bd55445b9b007ac3d4826 (patch) | |
| tree | cb8ba31273f6e668edb912b0dd3f4e74227ef674 /app/helpers/breadcrumb_helper.rb | |
| parent | 085b483d720116a50571020fed4c4fbcdcf56a07 (diff) | |
| download | chouette-core-31b66390ed9811105f3bd55445b9b007ac3d4826.tar.bz2 | |
Refactor compliance_checks#show to display objects statistics
Diffstat (limited to 'app/helpers/breadcrumb_helper.rb')
| -rw-r--r-- | app/helpers/breadcrumb_helper.rb | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/app/helpers/breadcrumb_helper.rb b/app/helpers/breadcrumb_helper.rb index ca7b7d946..3594ac838 100644 --- a/app/helpers/breadcrumb_helper.rb +++ b/app/helpers/breadcrumb_helper.rb @@ -135,7 +135,7 @@ module BreadcrumbHelper    end    def import_breadcrumb (action) -    referential_breadcrumb  +    referential_breadcrumb      add_breadcrumb Referential.human_attribute_name("imports"), referential_imports_path(@referential) unless action == :index      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 @compliance_check.name, referential_import_path(@referential, @compliance_check.id) if action == :compliance_check @@ -149,7 +149,8 @@ module BreadcrumbHelper    def compliance_check_breadcrumb (action)      referential_breadcrumb      add_breadcrumb Referential.human_attribute_name("compliance_checks"), referential_compliance_checks_path(@referential) unless action == :index -    add_breadcrumb @rule_parameter_set.compliance_check.name, referential_compliance_check_path(@referential, @rule_parameter_set.compliance_check.id) if action == :rule_parameter_set +    add_breadcrumb @compliance_check.name, referential_compliance_check_path(@referential, @compliance_check.id) if @compliance_check +    add_breadcrumb t("compliance_checks.rule_parameter_set"), rule_parameter_set_referential_compliance_check_path(@referential, @rule_parameter_set.compliance_check.id) if action == :rule_parameter_set    end    def compliance_check_task_breadcrumb (action) | 
