<% if @user %>
Request Hat
<% end %>
Hats

A hat is a formal, verified, way of posting a comment while speaking for a project, organization, or company. Each user may have multiple hats, one of which may be selected to be worn when posting a comment or sending a private message.

<% bit = 0 %> <% @hat_groups.keys.sort_by{|a| a.downcase }.each do |hg| %> <% @hat_groups[hg].sort_by{|hh| hh.user.username.downcase }.each do |hh| %> <% bit = (bit == 1 ? 0 : 1) %> <% end %> <% end %>
User Hat Link
<%= hh.user.username %> <%= hh.to_html_label %> <% if hh.link.to_s.match(/^http/) %> <%= hh.link %> <% elsif hh.link.blank? %> None <% else %> <%= hh.link %> <% end %>