<% self.page_title = "#{@user.name}" if @user == current_user self.page_description = "You are viewing " + link_to( "your own", admin_user_path( @user ) ) + " profile." else self.page_description = "You are viewing " + link_to( "#{@user.name}", admin_user_path( @user ) ) + "'s profile." end self.page_description_links = [ ( link_to( "Edit", edit_admin_user_path( @user ) ) if policy(@user).edit? ), link_to( "View all users", admin_users_path ) ].compact.join( link_separator ) %> <% content_for :sidebar do %>

People

<% if @user.created_users.count > 0 -%>

<%= @user.name %> has invited <%= @user.created_users.count %> users:

<% else -%>

<%= @user.name %> hasn't invited any users.

<% end -%> <% end %>
<% if @user.image -%>
<%= editable_dynamic_image_tag(@user.image) %>
<% end -%>

<%= @user.name %>

<% if @user.creator %> <% end %> <% if @user.created_at? -%> <% end -%> <% if @user.last_login_at? -%> <% end -%>
Email address: <%= mail_to @user.email %>
Invited by: <%= link_to @user.creator.name, admin_user_url( @user.creator ) %> <%= time_ago_in_words @user.created_at %> ago.
Member since: <%= @user.created_at.to_formatted_s :long %>
Last seen: <% if @user.online? -%> Online now <% else -%> <%= time_ago_in_words @user.last_login_at %> ago, on <%= @user.last_login_at.to_formatted_s :long %> <% end -%>