2013-01-26 02:21:41 -07:00
|
|
|
<h1>User Certifications</h1>
|
2013-01-25 03:50:53 -07:00
|
|
|
|
2013-08-29 01:38:40 -07:00
|
|
|
<%= link_to 'New User Certification', new_user_certification_path if can? :create, UserCertification %>
|
2013-01-25 09:28:32 -07:00
|
|
|
|
2013-01-25 11:11:39 -07:00
|
|
|
<% @grouped_user_certs.sort.each do |cert, user_certifications| %>
|
2013-01-25 20:31:23 -07:00
|
|
|
<dl class="collapsible">
|
2013-01-25 11:11:39 -07:00
|
|
|
<dt><%= cert.name %></dt>
|
2013-08-26 22:05:53 -07:00
|
|
|
<% user_certifications.sort{|a,b| a.user_name <=> b.user_name}.each do |user_certification| %>
|
2013-01-25 06:01:02 -07:00
|
|
|
<dd>
|
2013-08-26 22:05:53 -07:00
|
|
|
<%= link_to user_certification.user_name, user_certification %>
|
2013-01-25 06:01:02 -07:00
|
|
|
</dd>
|
|
|
|
<% end %>
|
2013-01-25 20:31:23 -07:00
|
|
|
</dl>
|
2013-01-25 03:50:53 -07:00
|
|
|
<% end %>
|
|
|
|
|