diff --git a/app/views/cards/show.html.erb b/app/views/cards/show.html.erb index e7785fa..f77ec73 100644 --- a/app/views/cards/show.html.erb +++ b/app/views/cards/show.html.erb @@ -1,3 +1,7 @@ +
+ User: + <%= @card.user.name unless @card.user.blank? %> +
Card Note: @@ -20,5 +24,5 @@
<%= link_to 'Upload to Door', upload_path(@card) if can? :upload, @card %> -<%= link_to 'Edit', edit_card_path(@card) %> | +<% if can? :update, @card then %><%= link_to 'Edit', edit_card_path(@card) %> |<% end %> <%= link_to 'Back', cards_path %> diff --git a/app/views/user_certifications/index.html.erb b/app/views/user_certifications/index.html.erb index 16876ca..b84bcd5 100644 --- a/app/views/user_certifications/index.html.erb +++ b/app/views/user_certifications/index.html.erb @@ -1,5 +1,7 @@