diff options
| -rw-r--r-- | app/controllers/compliance_check_sets_controller.rb | 2 | ||||
| -rw-r--r-- | app/controllers/compliance_control_sets_controller.rb | 1 | ||||
| -rw-r--r-- | app/views/compliance_check_sets/index.html.slim | 1 | ||||
| -rw-r--r-- | app/views/compliance_check_sets/show.html.slim | 3 | ||||
| -rw-r--r-- | app/views/compliance_control_sets/index.html.slim | 2 | ||||
| -rw-r--r-- | config/breadcrumbs.rb | 10 | 
6 files changed, 16 insertions, 3 deletions
| diff --git a/app/controllers/compliance_check_sets_controller.rb b/app/controllers/compliance_check_sets_controller.rb index fce8dcc56..ce76914b1 100644 --- a/app/controllers/compliance_check_sets_controller.rb +++ b/app/controllers/compliance_check_sets_controller.rb @@ -18,4 +18,4 @@ class ComplianceCheckSetsController < BreadcrumbController        }      end    end -end
\ No newline at end of file +end diff --git a/app/controllers/compliance_control_sets_controller.rb b/app/controllers/compliance_control_sets_controller.rb index 9de90c21c..d0e26ec74 100644 --- a/app/controllers/compliance_control_sets_controller.rb +++ b/app/controllers/compliance_control_sets_controller.rb @@ -3,6 +3,7 @@ class ComplianceControlSetsController < BreadcrumbController    include RansackDateFilter    before_action only: [:index] { set_date_time_params("updated_at", DateTime) }    respond_to :html +  belong_to :workbench    def index      index! do |format| diff --git a/app/views/compliance_check_sets/index.html.slim b/app/views/compliance_check_sets/index.html.slim index 38c4babcf..4ca5a2ee7 100644 --- a/app/views/compliance_check_sets/index.html.slim +++ b/app/views/compliance_check_sets/index.html.slim @@ -1,3 +1,4 @@ +- breadcrumb :compliance_check_sets, @workbench  / PageHeader  - header_params = ['jeux-de-donnees',          t('compliance_check_sets.index.title'), diff --git a/app/views/compliance_check_sets/show.html.slim b/app/views/compliance_check_sets/show.html.slim index 4e965947d..eefa5363f 100644 --- a/app/views/compliance_check_sets/show.html.slim +++ b/app/views/compliance_check_sets/show.html.slim @@ -1,3 +1,4 @@ +- breadcrumb :compliance_check_set, @workbench, @compliance_check_set  / PageHeader  = pageheader 'jeux-de-donnees',                @compliance_check_set.referential.name @@ -8,4 +9,4 @@        .col-lg-6.col-md-6.col-sm-12.col-xs-12          = definition_list t('metadatas'),              ComplianceCheckSet.human_attribute_name(:id) => @compliance_check_set.referential.id, -            ComplianceCheckSet.human_attribute_name(:name) => @compliance_check_set.referential.name
\ No newline at end of file +            ComplianceCheckSet.human_attribute_name(:name) => @compliance_check_set.referential.name diff --git a/app/views/compliance_control_sets/index.html.slim b/app/views/compliance_control_sets/index.html.slim index 1120ed186..27300a552 100644 --- a/app/views/compliance_control_sets/index.html.slim +++ b/app/views/compliance_control_sets/index.html.slim @@ -53,4 +53,4 @@            = replacement_msg t('compliance_control_sets.search_no_results') -= javascript_pack_tag 'date_filters'
\ No newline at end of file += javascript_pack_tag 'date_filters' diff --git a/config/breadcrumbs.rb b/config/breadcrumbs.rb index 992e5d977..9f4fd2a06 100644 --- a/config/breadcrumbs.rb +++ b/config/breadcrumbs.rb @@ -21,6 +21,16 @@ crumb :time_table do |referential, time_table|    parent :time_tables, referential  end +crumb :compliance_check_sets do |workbench| +  link :compliance_check_sets, 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) +  parent :compliance_check_sets, workbench +end +  # crumb :project do |project|  #   link project.name, project_path(project)  #   parent :projects | 
