<% content_for :title do %>

Team <%= link_to "New Team Member", new_user_path, :class => "btn btn-primary" if can?(:create, User) %> <%= render partial: "projects/keyboard_shortcuts" %>

<% end %> <% if @users.any? %>
<% @users.each do |user|; stats = @ticket_stats_by_user[user] %> <% end %>
Name Email Nickname Role Tickets
Filed
Dupicate
or Invalid
Fixed
<%= avatar_for(user, size: 32) %> <%= link_to user_path(user) do %> <%= user.first_name %> <%= user.last_name %> <% end %> <%= mail_to user.email %> <%= user.nickname %> <%= user.role %><%= ", Admin" if user.administrator? %> <%= stats[:tickets] %> <%= number_to_percentage stats[:invalid_tickets], precision: 0 if stats[:tickets] > 0 %> <%= number_to_percentage stats[:fixed_tickets], precision: 0 if stats[:tickets] > 0 %>
<% else %>
There are no team members yet. Click New Team Member to create one.
<% end %> <% content_for :javascripts do %> <% end %>