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

43 lines
953 B
Plaintext
Raw Normal View History

2012-06-30 21:14:35 +02:00
<div class="box wide">
<div class="legend">
<%= @showing_user.username %>
</div>
<label class="required">Status:</label>
<span class="d">
Active <%= @showing_user.is_admin? ? "administrator" : "user" %>
</span>
<br>
<label class="required">Joined:</label>
<span class="d">
<%= time_ago_in_words(@user.created_at) %> ago
(<%= @user.created_at.strftime("%Y-%m-%d") %>)
</span>
<br>
<label class="required">Karma:</label>
<span class="d">
<%= @showing_user.karma %>
</span>
<br>
<label class="required">Stories Submitted:</label>
<span class="d">
<%= @showing_user.stories_submitted_count %>
</span>
<br>
<label class="required">Comments Posted:</label>
<span class="d">
<%= Keystore.get("user:#{@showing_user.id}:comments_posted").to_i %>
</span>
<br>
<label class="required">About:</label>
<span class="d">
2012-07-01 02:46:11 +02:00
<%= raw @user.linkified_about %>
2012-06-30 21:14:35 +02:00
</span>
<br>
</div>