37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
<h1>Cyber Awareness Framework</h1>
|
|
<h2>Compliance Tracking</h2>
|
|
|
|
<% if !user_signed_in? %>
|
|
Not Signed in.
|
|
<% else %>
|
|
<%#= current_user.roletxt %>
|
|
<% if current_user.admin? %>
|
|
<h3>Companies <small><%= link_to "Add Company", new_company_path %></small></h3>
|
|
<ul>
|
|
<% @companies.each do |company| %>
|
|
<li><%= company.name %> <%= link_to "Edit", edit_company_path(company) %>
|
|
<ul>
|
|
<% company.users.each do |user|%>
|
|
<li><%= user.email %></li>
|
|
<% end %>
|
|
<li>Add user</li>
|
|
</ul>
|
|
<ul>
|
|
<% company.cafs.each do |caf| %>
|
|
<li><%= link_to caf.name, company_caf_path(caf.company_id, caf.id) %>
|
|
<% end %>
|
|
<li><%= link_to "Add CAF", new_company_caf_path(company) %></li>
|
|
</ul>
|
|
<% end %>
|
|
</ul>
|
|
<p>
|
|
<%= link_to "Add User" %>
|
|
</p>
|
|
<% end %>
|
|
|
|
<% if current_user.user? %>
|
|
User Stuff here!
|
|
<% end %>
|
|
|
|
<% end %>
|