%
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 %>
<%= @user.name %> hasn't invited any users.
<% end -%>
<% end %>
<% if @user.image -%>
<%= editable_dynamic_image_tag(@user.image) %>
<% end -%>
<%= @user.name %>
Email address: |
<%= mail_to @user.email %> |
<% if @user.creator %>
Invited by: |
<%= link_to @user.creator.name, admin_user_url( @user.creator ) %> <%= time_ago_in_words @user.created_at %> ago. |
<% end %>
<% if @user.created_at? -%>
Member since: |
<%= @user.created_at.to_formatted_s :long %>
|
<% end -%>
<% if @user.last_login_at? -%>
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 -%>
|
<% end -%>