Updating icons, fixing user cert nil error

This commit is contained in:
Will Bradley 2013-08-26 22:05:53 -07:00
parent 9e4b79a353
commit 4067477cd4
6 changed files with 6 additions and 2 deletions

View File

@ -5,4 +5,8 @@ class UserCertification < ActiveRecord::Base
belongs_to :user
belongs_to :certification
def user_name
self.user.name unless self.user.blank?
end
end

View File

@ -5,9 +5,9 @@
<% @grouped_user_certs.sort.each do |cert, user_certifications| %>
<dl class="collapsible">
<dt><%= cert.name %></dt>
<% user_certifications.sort{|a,b| a.user.name <=> b.user.name}.each do |user_certification| %>
<% user_certifications.sort{|a,b| a.user_name <=> b.user_name}.each do |user_certification| %>
<dd>
<%= link_to user_certification.user.name, user_certification %>
<%= link_to user_certification.user_name, user_certification %>
</dd>
<% end %>
</dl>

BIN
public/copper-coin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 0 B

After

Width:  |  Height:  |  Size: 661 B

BIN
public/gold-coin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
public/silver-coin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB