Will Bradley
accec4edb1
Conflicts: app/models/user_certification.rb app/views/user_certifications/index.html.erb app/views/user_certifications/show.html.erb
37 lines
947 B
Plaintext
37 lines
947 B
Plaintext
<p>
|
|
<b>User:</b>
|
|
<%= link_to @user_certification.user.name, @user_certification.user %>
|
|
</p>
|
|
|
|
<p>
|
|
<b>Certification:</b>
|
|
<%= @user_certification.certification.name %>
|
|
</p>
|
|
|
|
<p>
|
|
<b>Created:</b> by <%= link_to @created_by.name, @created_by unless @created_by.blank? %>
|
|
at <%= @user_certification.created_at %>
|
|
</p>
|
|
|
|
<p>
|
|
<b>Updated:</b> by
|
|
<% if @updated_by.blank? %>
|
|
#<%= @user_certification.updated_by ||= "nil" %>
|
|
<% else %>
|
|
<%= link_to @updated_by.name, @updated_by %>
|
|
<% end %>
|
|
at <%= @user_certification.updated_at %>
|
|
</p>
|
|
|
|
<p>
|
|
<% if can? :update, @user_certification %>
|
|
<%= link_to 'Edit', edit_user_certification_path(@user_certification) %> |
|
|
<% end %>
|
|
|
|
<% if can? :destroy, @user_certification %>
|
|
<%= link_to 'Delete', @user_certification, :confirm => "Are you sure you want to destroy this user's certification?", :method => :delete %> |
|
|
<% end %>
|
|
|
|
<%= link_to 'Back', user_certifications_path %>
|
|
</p>
|