journalduhacker/app/views/users/show.html.erb

67 lines
1.8 KiB
Plaintext
Raw Normal View History

2012-06-30 21:14:35 +02:00
<div class="box wide">
<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">
<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">
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">
<%= raw(time_ago_in_words_label(@showing_user.created_at)) %>
<% if @showing_user.invited_by_user %>
ago, invited by
<a href="/u/<%= @showing_user.invited_by_user.username %>"><%=
@showing_user.invited_by_user.username %></a>
<% else %>
ago
<% 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">
2012-09-16 22:05:48 +02:00
<%= @showing_user.karma %>
(average <%= number_with_precision(@showing_user.average_karma,
:precision => 2) %>)
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">
<a href="/newest/<%= @showing_user.username %>"><%=
@showing_user.stories_submitted_count %></a>
<% if tag = @showing_user.most_common_story_tag %>
(most commonly tagged <a href="<%= tag_url(tag.tag) %>"
class="tag tag_<%= tag.tag %>" title="<%= tag.description %>"><%=
tag.tag %></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">Comments Posted:</label>
<span class="d">
<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">
2012-07-01 02:52:54 +02:00
<%= raw @showing_user.linkified_about %>
</div>
2012-06-30 21:14:35 +02:00
</div>