This commit is contained in:
Jez Caudle 2023-01-29 20:25:26 +00:00
parent 148ef4efdd
commit 2c521dc0e3
3 changed files with 20 additions and 8 deletions

View File

@ -3,6 +3,7 @@ class HomeController < ApplicationController
if user_signed_in? if user_signed_in?
if current_user.admin? if current_user.admin?
@file = YAML.load_file(Rails.root.to_s + '/config/caf_text.yml') @file = YAML.load_file(Rails.root.to_s + '/config/caf_text.yml')
@objectives = @file["objectives"]
else else
end end
end end

View File

@ -28,11 +28,19 @@ Not Signed in.
<%= link_to "Add User" %> <%= link_to "Add User" %>
</p> </p>
<% @file["objectives"].each do |key, value| %>
<p><%= key%>:<%=value%></p> <% @objectives.each do |objective| %>
<% objective_info = objective["objective"] %>
<p><%= objective_info["name"] %> <br/> <%= objective_info["description"] %></p>
<% principles = objective_info["principles"] %>
<% principles.each do |principle| %>
<% principle_info = principle["principle"] %>
<p><%= principle_info["name"] %><br><%= principle_info["description"]%></p>
<% end %> <% end %>
<% end %> <% end %>
<% end %>
<% if current_user.user? %> <% if current_user.user? %>
User Stuff here! User Stuff here!
<% end %> <% end %>

View File

@ -130,8 +130,11 @@ objectives:
- Security deficiencies uncovered by assurance activities are assessed, prioritised and remedied when necessary in a timely and effective way. - Security deficiencies uncovered by assurance activities are assessed, prioritised and remedied when necessary in a timely and effective way.
- The methods used for assurance are reviewed to ensure they are working as intended and remain the most appropriate method to use. - The methods used for assurance are reviewed to ensure they are working as intended and remain the most appropriate method to use.
- objective: Objective B - Protecting against cyber attack # - objective:
# name: Objective B - Protecting against cyber attack
- objective: Objective C - Detecting cyber security events #
# - objective:
- objective: Objective D - Minimising the impact of cyber security incidents # name: Objective C - Detecting cyber security events
#
# - objective:
# name: Objective D - Minimising the impact of cyber security incidents