<% content_for :meta_title, 'My Profile' %> <% content_for :meta_description, "My profile administration section for the logged in user" %> <%= render 'tab_menu' %>
<% if @profile.other_name.present? %>

<%= @profile.other_name %>
<%= @profile.name %>

<% else %>

<%= @profile.name %>

<% end %> <% if @profile.portrait.present? %>

<%= image_tag @profile.portrait_url(:small), title: @profile.name, alt: @profile.name, id: 'profile-portrait' %>

<% end %>
<%= render 'custom_private_profile_attributes' %> <%= render 'custom_public_profile_attributes', member: @profile %>
private information
email address<%= @profile.email %>
get rare newsletter <%= @profile.allow_newsletter == true ? "
get your daily activity digests <%= @profile.allow_daily_digests == true ? "
public information
first name<%= @profile.first_name %>
last name<%= @profile.last_name %>
<%= render 'shared/other_name_label' %><%= @profile.other_name %>
website<%= link_to "#{URI(@profile.website_url).host}#{URI(@profile.website_url).path}#{URI(@profile.website_url).query}#{URI(@profile.website_url).fragment}", @profile.website_url, rel: 'nofollow' unless @profile.website_url.nil? %>
facebook<%= link_to "#{URI(@profile.facebook_url).host}#{URI(@profile.facebook_url).path}#{URI(@profile.facebook_url).query}#{URI(@profile.facebook_url).fragment}", @profile.facebook_url, rel: 'nofollow' unless @profile.facebook_url.nil? %>
twitter<%= link_to @profile.twitter_handle, "https://twitter.com/#{@profile.twitter_handle}", rel: 'nofollow' unless @profile.twitter_handle.nil? %>
google+<%= link_to "#{URI(@profile.google_plus_url).host}#{URI(@profile.google_plus_url).path}#{URI(@profile.google_plus_url).query}#{URI(@profile.google_plus_url).fragment}", @profile.google_plus_url, rel: 'nofollow' unless @profile.google_plus_url.nil? %>

<%= link_to " change your info".html_safe, edit_profile_path, class: 'btn btn-sm btn-default' %>

<%= render'admin_context_menu' %> <%# partial in tkh_menus gem or has to be added in host app %> <%= render './shared/menus' %>