Merge branch 'ipn' of github.com:zyphlar/Open-Source-Access-Control-Web-Interface into ipn

This commit is contained in:
Will Bradley 2013-08-26 22:09:37 -07:00
commit b5d9514914
6 changed files with 6 additions and 2 deletions

View File

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

View File

@ -5,9 +5,9 @@
<% @grouped_user_certs.sort.each do |cert, user_certifications| %> <% @grouped_user_certs.sort.each do |cert, user_certifications| %>
<dl class="collapsible"> <dl class="collapsible">
<dt><%= cert.name %></dt> <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> <dd>
<%= link_to user_certification.user.name, user_certification %> <%= link_to user_certification.user_name, user_certification %>
</dd> </dd>
<% end %> <% end %>
</dl> </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