diff options
Diffstat (limited to 'config/breadcrumbs.rb')
| -rw-r--r-- | config/breadcrumbs.rb | 23 | 
1 files changed, 17 insertions, 6 deletions
| diff --git a/config/breadcrumbs.rb b/config/breadcrumbs.rb index 00ccf16bd..e60ff187f 100644 --- a/config/breadcrumbs.rb +++ b/config/breadcrumbs.rb @@ -8,7 +8,7 @@ end  crumb :workbench_output do |workbench|    link I18n.t('workbench_outputs.show.title'), workbench_output_path(workbench) -  parent :workbench, current_offer_workbench +  parent :workbench, mutual_workbench(workbench)  end  crumb :merges do |workbench| @@ -96,6 +96,11 @@ crumb :compliance_check_set do |workbench, compliance_check_set|    parent :compliance_check_sets, workbench  end +crumb :compliance_check do |workbench, compliance_check| +  link breadcrumb_name(compliance_check), workbench_compliance_check_set_compliance_check_path(workbench, compliance_check.compliance_check_set, compliance_check) +  parent :compliance_check_set_executed, workbench, compliance_check.compliance_check_set +end +  crumb :compliance_check_set_executed do |workbench, compliance_check_set|    link I18n.t('compliance_check_sets.executed.title', name: compliance_check_set.name), executed_workbench_compliance_check_set_path(workbench, compliance_check_set)    parent :compliance_check_sets, workbench @@ -106,13 +111,23 @@ crumb :imports do |workbench|    parent :workbench, workbench  end +crumb :exports do |workbench| +  link I18n.t('exports.index.title'), workbench_exports_path(workbench) +  parent :workbench, workbench +end +  crumb :import do |workbench, import|    link breadcrumb_name(import), workbench_import_path(workbench, import)    parent :imports, workbench  end +crumb :export do |workbench, export| +  link breadcrumb_name(export), workbench_export_path(workbench, export) +  parent :exports, workbench +end +  crumb :import_resources do |import, import_resources| -  link I18n.t('import_resources.index.title'), workbench_import_import_resources_path(import.workbench, import.parent) +  link I18n.t('import.resources.index.title'), workbench_import_import_resources_path(import.workbench, import.parent)    parent :import, import.workbench, import.parent  end @@ -154,7 +169,6 @@ end  crumb :companies do |line_referential|    link I18n.t('companies.index.title'), line_referential_companies_path(line_referential) -  parent :line_referential, line_referential  end  crumb :company do |company| @@ -164,7 +178,6 @@ end  crumb :networks do |line_referential|    link I18n.t('networks.index.title'), line_referential_networks_path(line_referential) -  parent :line_referential, line_referential  end  crumb :network do |network| @@ -174,7 +187,6 @@ end  crumb :group_of_lines do |line_referential|    link I18n.t('group_of_lines.index.title'), line_referential_group_of_lines_path(line_referential) -  parent :line_referential, line_referential  end  crumb :group_of_line do |group_of_line| @@ -184,7 +196,6 @@ end  crumb :lines do |line_referential|    link I18n.t('lines.index.title'), line_referential_lines_path -  parent :line_referential, line_referential  end  crumb :line do |line| | 
