<% if can? :create, User %> <%= link_to 'New User', new_user_path, class: "btn btn-success" %> <% end %> <% if can? :manage, User %> <%= link_to 'Merge Users', users_merge_path, class: "btn btn-primary" %> <% end %> <% if current_user.admin? %> <%= link_to 'Inactive Users', users_inactive_path, class: "btn btn-default" %> <% end %> <% if can? :activity, User %> <%= link_to 'Recent Activity', users_activity_path, class: "btn btn-default" %> <% end %> <% if can? :new_member_report, User %> <%= link_to 'New Members Report', users_new_member_report_path, class: "btn btn-default" %> <% end %>
<% @certifications = Certification.all.sort_by(&:id) %>Name | Member? | <% if current_user.admin? then %>Orientation? | <% end %>Waiver? | Card? | Instructor? | <% if current_user.admin? then %>Admin? | <% end %> <% @certifications.each do |c| %><%= c.name %> | <% end %>||
---|---|---|---|---|---|---|---|---|---|
<%= image_tag user.gravatar_url(:size => 25, :default => "http://members.heatsynclabs.org/assets/nil.png"), :class => :avatar %> | <%= link_to user.name, user %> | <%= raw(user.member_status_symbol) %> | <% if current_user.admin? then %><%= user.email %> | <% end %> <% if current_user.admin? then %><%= unless user.orientation.blank? then raw("✓") end %> | <% end %><%= unless user.contracts.blank? then raw("✓") end %> | <%= unless user.cards.blank? then raw("✓") end %> | <%= if user.instructor? then raw("✓") end %> | <% if current_user.admin? then %><%= if user.admin? then raw("✓") end %> | <% end %> <% @certifications.each do |c| %><% user.user_certifications.each do |u| %> <% if u.certification_id == c.id %> <%= link_to raw("✓"), u %> <% end %> <% end %> | <% end %>
There's a lot more to see here, but our records show you haven't completed the new member orientation yet. If that's incorrect, please contact a volunteer.
<% end %>