aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/compliance_control_sets
diff options
context:
space:
mode:
authorTeddy Wing2018-01-25 13:11:31 +0100
committerZog2018-01-25 17:18:03 +0100
commit9ee14d84ccfd19fb6a53c83826f352088f06b57c (patch)
treed044c068a2599cb70cd8d919e45a61cd21066563 /app/views/compliance_control_sets
parent9a0a0a8398eda742df6793b6981bef037968604d (diff)
downloadchouette-core-9ee14d84ccfd19fb6a53c83826f352088f06b57c.tar.bz2
ComplianceControlSetDecorator: Convert to new action links interface
Refs #5586
Diffstat (limited to 'app/views/compliance_control_sets')
-rw-r--r--app/views/compliance_control_sets/index.html.slim4
-rw-r--r--app/views/compliance_control_sets/show.html.slim12
2 files changed, 0 insertions, 16 deletions
diff --git a/app/views/compliance_control_sets/index.html.slim b/app/views/compliance_control_sets/index.html.slim
index 28d2254bf..144a4e5b9 100644
--- a/app/views/compliance_control_sets/index.html.slim
+++ b/app/views/compliance_control_sets/index.html.slim
@@ -1,7 +1,4 @@
- breadcrumb :compliance_control_sets
-- content_for :page_header_actions do
- - if policy(ComplianceControlSet).create?
- = link_to(t('compliance_control_sets.actions.new'), new_compliance_control_set_path, class: 'btn btn-default')
.page_content
.container-fluid
@@ -38,7 +35,6 @@
) \
],
sortable: true,
- links: [:show],
cls: 'table has-filter has-search'
= new_pagination @compliance_control_sets, 'pull-right'
diff --git a/app/views/compliance_control_sets/show.html.slim b/app/views/compliance_control_sets/show.html.slim
index d915bbdaf..59100681d 100644
--- a/app/views/compliance_control_sets/show.html.slim
+++ b/app/views/compliance_control_sets/show.html.slim
@@ -1,17 +1,5 @@
- breadcrumb :compliance_control_set, @compliance_control_set
- page_header_content_for @compliance_control_set
-- content_for :page_header_content do
- .row.mb-sm
- .col-lg-12.text-right
- - @compliance_control_set.action_links.each do |link|
- - if link.is_a?(HTMLElement)
- = link.to_html(class: 'btn btn-primary')
- - else
- = link_to link.href,
- method: link.method,
- data: link.data,
- class: 'btn btn-primary' do
- = link.content
.page_content
.container-fluid