<% 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' %>
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(student.website_url).host}#{URI(student.website_url).path}#{URI(student.website_url).query}#{URI(student.website_url).fragment}", student.website_url, rel: 'nofollow' %>
facebook<%= link_to "#{URI(student.facebook_url).host}#{URI(student.facebook_url).path}#{URI(student.facebook_url).query}#{URI(student.facebook_url).fragment}", student.facebook_url, rel: 'nofollow' %>
twitter<%= link_to student.twitter_handle, "https://twitter.com/#{student.twitter_handle}", rel: 'nofollow' %>
google+<%= link_to "#{URI(student.google_plus_url).host}#{URI(student.google_plus_url).path}#{URI(student.google_plus_url).query}#{URI(student.google_plus_url).fragment}", student.google_plus_url, rel: 'nofollow' %>

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

<%= render'admin_context_menu' %>