Joined: <%= longtime @user.created_at %>
Lastvisit: <%= longtime @user.lastvisit %>
<% if cuser and cuser.admin? %>Last ip <%= @user.lastip %>
<% end %> <%= cascade @user, [ ["Comments", "posted_comments.count"], ["Matches", "matches.count"]] %> <% if @user.groups.count > 0 %>Groups: <% for group in @user.groups.all %> <%= namelink group %> <% end %>
<% end %> <% if @user.teamers.active.count > 0 %>Teams: <% @user.teamers.active.each do |teamer| %> <%= namelink teamer.team %> <% end %>
<% end %>Steam: <% if @user.profile.steam_profile.match(/\A[0-9]*\z/) %> <%= link_to @user.profile.steam_profile, "http://steamcommunity.com/profiles/#{@user.profile.steam_profile}" %> <% elsif @user.profile.steam_profile.match(/\A[A-Za-z0-9_\-\+]{1,40}\z/) %> <%= link_to @user.profile.steam_profile, "http://steamcommunity.com/id/#{@user.profile.steam_profile}" %> <% end %>
<% end %><%= link_to "Send PM", :controller => "messages", :action => "new", :id => "User", :id2 => @user %>