diff options
| author | Xinhui | 2017-10-19 15:34:31 +0200 |
|---|---|---|
| committer | Xinhui | 2017-10-19 15:36:51 +0200 |
| commit | 1ad159bffffc1116b27f4eb39f1631cf5f791d5a (patch) | |
| tree | 30a6d889a6c3758061b4a342bb9b000d041afef6 /config/breadcrumbs.rb | |
| parent | d304de7288b6d8111b1d9abc2f52be344e829166 (diff) | |
| download | chouette-core-1ad159bffffc1116b27f4eb39f1631cf5f791d5a.tar.bz2 | |
Breadcrumb for compliance_control_sets
Diffstat (limited to 'config/breadcrumbs.rb')
| -rw-r--r-- | config/breadcrumbs.rb | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/config/breadcrumbs.rb b/config/breadcrumbs.rb index 3e279a84b..6199c8fa3 100644 --- a/config/breadcrumbs.rb +++ b/config/breadcrumbs.rb @@ -12,7 +12,7 @@ crumb :referential do |referential| end crumb :time_tables do |referential| - link :time_tables, referential_time_tables_path(referential) + link t('time_tables.index.title'), referential_time_tables_path(referential) parent :referential, referential end @@ -22,17 +22,17 @@ crumb :time_table do |referential, time_table| end crumb :compliance_check_sets do |workbench| - link :compliance_check_sets, workbench_compliance_check_sets_path(workbench) + link I18n.t('compliance_check_sets.index.title'), workbench_compliance_check_sets_path(workbench) parent :workbench, workbench end crumb :compliance_check_set do |workbench, compliance_check_set| - link :compliance_check_set, workbench_compliance_check_set_path(workbench, compliance_check_set) + link compliance_check_set.name, workbench_compliance_check_set_path(workbench, compliance_check_set) parent :compliance_check_sets, workbench end crumb :imports do |workbench| - link :imports, workbench_imports_path(workbench) + link I18n.t('imports.index.title'), workbench_imports_path(workbench) parent :workbench, workbench end @@ -45,6 +45,19 @@ crumb :organisation do |organisation| link organisation.name, organisation_path(organisation) end +crumb :compliance_control_sets do + link I18n.t('compliance_control_sets.index.title'), compliance_control_sets_path +end + +crumb :compliance_control_set do |compliance_control_set| + link compliance_control_set.name, compliance_control_sets_path + parent :compliance_control_sets +end + +# crumb :compliance_controls do|compliance_control_sets| +# link +# parent :compliance_control_sets, compliance_control_sets +# end # crumb :project do |project| # link project.name, project_path(project) |
