Minor UI tweaks

This commit is contained in:
Will Bradley 2013-01-25 09:28:32 -07:00
parent 95374a8c1f
commit 0b6975a655
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,7 @@
<p>
<b>User:</b>
<%= @card.user.name unless @card.user.blank? %>
</p>
<p> <p>
<b>Card Note:</b> <b>Card Note:</b>
@ -20,5 +24,5 @@
</p> </p>
<%= link_to 'Upload to Door', upload_path(@card) if can? :upload, @card %> <%= 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 %> <%= link_to 'Back', cards_path %>

View File

@ -1,5 +1,7 @@
<h1>Listing User Certifications</h1> <h1>Listing User Certifications</h1>
<%= link_to 'New User Certification', new_user_certification_path %>
<dl> <dl>
<% @grouped_user_certs.sort.each do |user, user_certifications| %> <% @grouped_user_certs.sort.each do |user, user_certifications| %>
<dt><%= user %></dt> <dt><%= user %></dt>
@ -13,6 +15,3 @@
<% end %> <% end %>
</dl> </dl>
<br />
<%= link_to 'New User Certification', new_user_certification_path %>