2012-06-30 21:14:35 +02:00
|
|
|
<div class="box wide">
|
2012-07-04 05:43:22 +02:00
|
|
|
<div class="legend">
|
|
|
|
<%= @showing_user.username %>
|
|
|
|
<% if @user %>
|
|
|
|
(<a href="/messages?to=<%= @showing_user.username %>">Send a Message</a>)
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2012-06-30 21:14:35 +02:00
|
|
|
|
2012-09-16 22:05:48 +02:00
|
|
|
<div id="gravatar">
|
2012-12-17 03:02:02 +01:00
|
|
|
<img src="<%= @showing_user.avatar_url %>">
|
2012-09-09 02:26:40 +02:00
|
|
|
</div>
|
|
|
|
|
2012-06-30 21:14:35 +02:00
|
|
|
<label class="required">Status:</label>
|
|
|
|
<span class="d">
|
2012-09-02 16:50:07 +02:00
|
|
|
Active <%= @showing_user.is_admin? ? "administrator" :
|
|
|
|
(@showing_user.is_moderator? ? "moderator" : "user") %>
|
2012-06-30 21:14:35 +02:00
|
|
|
</span>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<label class="required">Joined:</label>
|
|
|
|
<span class="d">
|
2013-07-01 23:01:05 +02:00
|
|
|
<%= raw(time_ago_in_words_label(@showing_user.created_at)) %> ago
|
2012-09-16 22:14:26 +02:00
|
|
|
<% if @showing_user.invited_by_user %>
|
2013-07-01 23:01:05 +02:00
|
|
|
by invitation from
|
2012-09-16 22:14:26 +02:00
|
|
|
<a href="/u/<%= @showing_user.invited_by_user.username %>"><%=
|
|
|
|
@showing_user.invited_by_user.username %></a>
|
|
|
|
<% end %>
|
2012-06-30 21:14:35 +02:00
|
|
|
</span>
|
|
|
|
<br>
|
2013-02-14 01:50:51 +01:00
|
|
|
|
2012-06-30 21:14:35 +02:00
|
|
|
<label class="required">Karma:</label>
|
|
|
|
<span class="d">
|
2013-07-01 23:01:05 +02:00
|
|
|
<%= @showing_user.karma %>, averaging <%=
|
|
|
|
number_with_precision(@showing_user.average_karma, :precision => 2) %>
|
|
|
|
per story/comment
|
2012-09-07 19:25:59 +02:00
|
|
|
</span>
|
|
|
|
<br>
|
|
|
|
|
2012-06-30 21:14:35 +02:00
|
|
|
<label class="required">Stories Submitted:</label>
|
|
|
|
<span class="d">
|
2013-07-01 23:01:05 +02:00
|
|
|
<% tag = @showing_user.most_common_story_tag %>
|
2012-09-04 00:21:41 +02:00
|
|
|
<a href="/newest/<%= @showing_user.username %>"><%=
|
2013-07-01 23:01:05 +02:00
|
|
|
@showing_user.stories_submitted_count %></a><%= tag ? ", " : "" %>
|
|
|
|
<% if tag %>
|
|
|
|
most commonly tagged <a href="<%= tag_url(tag.tag) %>"
|
2013-07-01 22:53:24 +02:00
|
|
|
class="tag tag_<%= tag.tag %>" title="<%= tag.description %>"><%=
|
2013-07-01 23:01:05 +02:00
|
|
|
tag.tag %></a>
|
2013-07-01 22:53:24 +02:00
|
|
|
<% end %>
|
2012-06-30 21:14:35 +02:00
|
|
|
</span>
|
|
|
|
<br>
|
2013-02-14 01:50:51 +01:00
|
|
|
|
2012-06-30 21:14:35 +02:00
|
|
|
<label class="required">Comments Posted:</label>
|
|
|
|
<span class="d">
|
2012-09-04 00:11:53 +02:00
|
|
|
<a href="/threads/<%= @showing_user.username %>"><%=
|
|
|
|
@showing_user.comments_posted_count %></a>
|
2012-06-30 21:14:35 +02:00
|
|
|
</span>
|
|
|
|
<br>
|
2012-07-01 02:52:54 +02:00
|
|
|
|
2012-06-30 21:14:35 +02:00
|
|
|
<label class="required">About:</label>
|
2012-07-01 02:52:54 +02:00
|
|
|
|
2012-09-16 22:05:48 +02:00
|
|
|
<div id="user_about" class="shorten_first_p">
|
2013-07-01 23:01:05 +02:00
|
|
|
<% if @showing_user.about.present? %>
|
|
|
|
<%= raw @showing_user.linkified_about %>
|
|
|
|
<% else %>
|
|
|
|
<span class="na">A mystery...</span>
|
|
|
|
<% end %>
|
2012-07-01 02:52:54 +02:00
|
|
|
</div>
|
2012-06-30 21:14:35 +02:00
|
|
|
</div>
|