aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorXinhui2017-10-19 14:40:07 +0200
committerXinhui2017-10-19 14:40:07 +0200
commitafd105ce4582bdec42ca57d1f546a2f5491de7c2 (patch)
treef9491f9887eb1614908ca0f50a092654b208e347 /app
parent1e8f8fa2879f066284ca72be96386d426108d079 (diff)
downloadchouette-core-afd105ce4582bdec42ca57d1f546a2f5491de7c2.tar.bz2
Breadcrum for compliance check sets
Diffstat (limited to 'app')
-rw-r--r--app/controllers/compliance_check_sets_controller.rb2
-rw-r--r--app/controllers/compliance_control_sets_controller.rb1
-rw-r--r--app/views/compliance_check_sets/index.html.slim1
-rw-r--r--app/views/compliance_check_sets/show.html.slim3
-rw-r--r--app/views/compliance_control_sets/index.html.slim2
5 files changed, 6 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'