Open-Source-Access-Control-.../app/views/certifications/show.html.erb

21 lines
493 B
Plaintext

<p>
<b>Name:</b>
<%= @certification.name %>
</p>
<p>
<b>Description:</b>
<%= simple_format @certification.description %>
</p>
<b>Certified Users:</b>
<ul>
<% @certification_users.each do |user| %>
<li><%= link_to user.name, user %></li>
<% end %>
<% if @certification_users.blank? then %><li>n/a</li><% end %>
</ul>
<% if can? :update, @certification %><%= link_to 'Edit', edit_certification_path(@certification) %> |<% end %>
<%= link_to 'Back', certifications_path %>