aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/helpers/compliance_control_sets_helper.rb4
-rw-r--r--app/views/compliance_control_sets/show.html.slim2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/compliance_control_sets_helper.rb b/app/helpers/compliance_control_sets_helper.rb
index 04dfe1f51..a8d2f79d3 100644
--- a/app/helpers/compliance_control_sets_helper.rb
+++ b/app/helpers/compliance_control_sets_helper.rb
@@ -4,10 +4,10 @@ module ComplianceControlSetsHelper
[current_organisation, Organisation.find_by_name("STIF")].uniq
end
- def floated_links ccs_id
+ def floating_links ccs_id
links = [new_control(ccs_id), new_block(ccs_id)]
if links.any?
- content_tag :div, class: 'select_toolbox' do
+ content_tag :div, class: 'select_toolbox', id: 'floating-links' do
content_tag :ul do
links.collect {|link| concat content_tag(:li, link, class: 'st_action with_text') if link}
end
diff --git a/app/views/compliance_control_sets/show.html.slim b/app/views/compliance_control_sets/show.html.slim
index 9cbf8acdf..851a4a41a 100644
--- a/app/views/compliance_control_sets/show.html.slim
+++ b/app/views/compliance_control_sets/show.html.slim
@@ -46,4 +46,4 @@
.col-lg-12
= replacement_msg t('compliance_controls.search_no_results')
- = floated_links @compliance_control_set.id
+ = floating_links @compliance_control_set.id