tweak display of user profile data a bit
This commit is contained in:
parent
eeda7668b6
commit
2858fea247
|
@ -19,34 +19,32 @@
|
||||||
|
|
||||||
<label class="required">Joined:</label>
|
<label class="required">Joined:</label>
|
||||||
<span class="d">
|
<span class="d">
|
||||||
<%= raw(time_ago_in_words_label(@showing_user.created_at)) %>
|
<%= raw(time_ago_in_words_label(@showing_user.created_at)) %> ago
|
||||||
<% if @showing_user.invited_by_user %>
|
<% if @showing_user.invited_by_user %>
|
||||||
ago, invited by
|
by invitation from
|
||||||
<a href="/u/<%= @showing_user.invited_by_user.username %>"><%=
|
<a href="/u/<%= @showing_user.invited_by_user.username %>"><%=
|
||||||
@showing_user.invited_by_user.username %></a>
|
@showing_user.invited_by_user.username %></a>
|
||||||
<% else %>
|
|
||||||
ago
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</span>
|
</span>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<label class="required">Karma:</label>
|
<label class="required">Karma:</label>
|
||||||
<span class="d">
|
<span class="d">
|
||||||
<%= @showing_user.karma %>
|
<%= @showing_user.karma %>, averaging <%=
|
||||||
(average <%= number_with_precision(@showing_user.average_karma,
|
number_with_precision(@showing_user.average_karma, :precision => 2) %>
|
||||||
:precision => 2) %>)
|
per story/comment
|
||||||
</span>
|
</span>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<label class="required">Stories Submitted:</label>
|
<label class="required">Stories Submitted:</label>
|
||||||
<span class="d">
|
<span class="d">
|
||||||
|
<% tag = @showing_user.most_common_story_tag %>
|
||||||
<a href="/newest/<%= @showing_user.username %>"><%=
|
<a href="/newest/<%= @showing_user.username %>"><%=
|
||||||
@showing_user.stories_submitted_count %></a>
|
@showing_user.stories_submitted_count %></a><%= tag ? ", " : "" %>
|
||||||
|
<% if tag %>
|
||||||
<% if tag = @showing_user.most_common_story_tag %>
|
most commonly tagged <a href="<%= tag_url(tag.tag) %>"
|
||||||
(most commonly tagged <a href="<%= tag_url(tag.tag) %>"
|
|
||||||
class="tag tag_<%= tag.tag %>" title="<%= tag.description %>"><%=
|
class="tag tag_<%= tag.tag %>" title="<%= tag.description %>"><%=
|
||||||
tag.tag %></a>)
|
tag.tag %></a>
|
||||||
<% end %>
|
<% end %>
|
||||||
</span>
|
</span>
|
||||||
<br>
|
<br>
|
||||||
|
@ -61,6 +59,10 @@
|
||||||
<label class="required">About:</label>
|
<label class="required">About:</label>
|
||||||
|
|
||||||
<div id="user_about" class="shorten_first_p">
|
<div id="user_about" class="shorten_first_p">
|
||||||
<%= raw @showing_user.linkified_about %>
|
<% if @showing_user.about.present? %>
|
||||||
|
<%= raw @showing_user.linkified_about %>
|
||||||
|
<% else %>
|
||||||
|
<span class="na">A mystery...</span>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue