2014-04-16 08:44:36 +00:00
|
|
|
<div class="group">
|
|
|
|
<h4>General information</h4>
|
|
|
|
|
2014-04-17 07:55:19 +00:00
|
|
|
<dl>
|
|
|
|
<dt>Age</dt>
|
|
|
|
<dd><%= @user.age %></dd>
|
|
|
|
<dt>Country</dt>
|
|
|
|
<dd><%= @user.country %></dd>
|
|
|
|
<dt>Town</dt>
|
|
|
|
<dd><%= @user.profile.town %></dd>
|
|
|
|
<dt>SteamID</dt>
|
|
|
|
<dd>
|
2014-08-28 20:43:11 +00:00
|
|
|
<p><%= @user.steamid %></p>
|
|
|
|
<div id="steam-search" data-user-id="<%= @user.id %>">
|
|
|
|
<%= link_to "Search for Steam Account" %>
|
|
|
|
</div>
|
2014-04-17 07:55:19 +00:00
|
|
|
</dd>
|
|
|
|
</dl>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-17 07:55:19 +00:00
|
|
|
<h4>Contact</h4>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-17 07:55:19 +00:00
|
|
|
<dl>
|
|
|
|
<% if !@user.profile.web.blank? %>
|
|
|
|
<dt>Web</dt>
|
|
|
|
<dd><%= @user.profile.web %></dd>
|
|
|
|
<% end %>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-17 07:55:19 +00:00
|
|
|
<% if cuser and cuser.admin? or @user.public_email %>
|
|
|
|
<dt>Email</dt>
|
|
|
|
<dd><%= @user.email_s %></dd>
|
2014-03-23 00:22:25 +00:00
|
|
|
<% end %>
|
|
|
|
|
2014-04-17 07:55:19 +00:00
|
|
|
<% if @user.profile.steam_profile and @user.profile.steam_profile != "" %>
|
|
|
|
<dt>Steam</dt>
|
|
|
|
<dd>
|
|
|
|
<% 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 %>
|
|
|
|
</dd>
|
2014-03-23 00:22:25 +00:00
|
|
|
<% end %>
|
2014-04-17 07:55:19 +00:00
|
|
|
</dl>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-17 07:55:19 +00:00
|
|
|
<% if @user.profile.achievements and !@user.profile.achievements.empty? %>
|
|
|
|
<h4>Achievements</h4>
|
2014-04-26 00:20:34 +00:00
|
|
|
<div class="achievements">
|
|
|
|
<%= @user.profile.achievements_parsed.html_safe %>
|
|
|
|
</div>
|
2014-04-17 07:55:19 +00:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= link_to "Send PM", { controller: "messages", action: "new", id: "User", id2: @user }, { class: 'button tiny' } %>
|
|
|
|
</div>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-16 08:44:36 +00:00
|
|
|
<div class="group">
|
2014-04-17 07:55:19 +00:00
|
|
|
<h4>Statistics</h4>
|
|
|
|
|
|
|
|
<dl>
|
|
|
|
<dt>Joined</dt>
|
|
|
|
<dd><%= longtime @user.created_at %></dd>
|
|
|
|
<dt>Last visit</dt>
|
|
|
|
<dd><%= longtime @user.lastvisit %></dd>
|
|
|
|
<dt></dt>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-17 07:55:19 +00:00
|
|
|
<% if cuser and cuser.admin? %>
|
|
|
|
<dt>Last IP</dt>
|
|
|
|
<dd><%= @user.lastip %></dd>
|
|
|
|
<% end %>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-17 07:55:19 +00:00
|
|
|
<dt>Comments</dt>
|
|
|
|
<dd><%= @user.posted_comments.count %></dd>
|
|
|
|
<dt>Matches</dt>
|
|
|
|
<dd><%= @user.matches.count %></dd>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-17 07:55:19 +00:00
|
|
|
<% if @user.groups.count > 0 %>
|
|
|
|
<dt>Groups</dt>
|
|
|
|
<% for group in @user.groups.all %>
|
|
|
|
<dd><%= namelink group %></dd>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-17 07:55:19 +00:00
|
|
|
<% if @user.teamers.active.count > 0 %>
|
|
|
|
<dt>Teams</dt>
|
|
|
|
<% @user.teamers.active.each do |teamer| %>
|
|
|
|
<dd><%= namelink teamer.team %></dd>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</dl>
|
|
|
|
</div>
|