<% if !@showing_user.is_active? %> <% elsif @showing_user.is_new? %> <% else %> <% end %> <%= @showing_user.username %> <% if @user && @showing_user.is_active? %> (Send a Message) <% end %>
<% if @showing_user.is_active? %>
<% end %> > <% if @showing_user.is_banned? %> Banned <% elsif !@showing_user.is_active? %> Inactive <% else %> Active <% end %> <%= @showing_user.is_admin? ? "administrator" : (@showing_user.is_moderator? ? "moderator" : "user") %>
<%= raw(time_ago_in_words_label(@showing_user.created_at)) %> ago <% if @showing_user.invited_by_user %> by invitation from <%= link_to @showing_user.invited_by_user.try(:username), @showing_user.invited_by_user %> <% end %>
<% if @showing_user.is_banned? %> <%= raw(time_ago_in_words_label(@showing_user.banned_at)) %> ago <% if @showing_user.banned_by_user %> by <%= link_to @showing_user.banned_by_user.try(:username), @showing_user.banned_by_user %>: <%= @showing_user.banned_reason %> <% end %>
<% end %> <% if @showing_user.hats.any? %> <% @showing_user.hats.each do |hat| %> <%= hat.to_html_label %> <% end %>
<% end %> <% if @showing_user.deleted_at? %> <%= raw(time_ago_in_words_label(@showing_user.deleted_at)) %> ago
<% end %> <%= @showing_user.karma %>, averaging <%= number_with_precision(@showing_user.average_karma, :precision => 2) %> per story/comment
<% tag = @showing_user.most_common_story_tag %> <%= @showing_user.stories_submitted_count %><%= tag ? ", " : "" %> <% if tag %> most commonly tagged <%= tag.tag %> <% end %>
<%= @showing_user.comments_posted_count %>
<% if @showing_user.is_active? %>
<% if @showing_user.about.present? %> <%= raw @showing_user.linkified_about %> <% else %> A mystery... <% end %>
<% end %>