<%= image_tag @user.gravatar_url(:default => "http://members.heatsynclabs.org/assets/nil.png"), :class => 'avatar-large' %> <%= @user.name %> <%= raw(@user.member_status_symbol) %> <%= link_to image_tag('/twitter.png', :class => 'social-icon', :title => "Twitter"), @user.twitter_url, :class => 'social-link' if @user.twitter_url.present? %> <%= link_to image_tag('/facebook.png', :class => 'social-icon', :title => "Facebook"), @user.facebook_url, :class => 'social-link' if @user.facebook_url.present? %> <%= link_to image_tag('/github.png', :class => 'social-icon', :title => "Github"), @user.github_url, :class => 'social-link' if @user.github_url.present? %> <%= link_to image_tag('/website.png', :class => 'social-icon', :title => "Website"), @user.website_url, :class => 'social-link' if @user.website_url.present? %>

<% if current_user.admin? || @user.email_visible %>

Email: <%= @user.email %>

<% end %> <% if current_user.admin? || @user.phone_visible %>

Phone: <%= @user.phone %>

<% end %>

Current Skills: <%= simple_format @user.current_skills %>

Desired Skills: <%= simple_format @user.desired_skills %>

<% if current_user.admin? then %>

Orientation? <%= @user.orientation.strftime("%B %d %Y") unless @user.orientation.blank? %>

Emergency Name: <%= @user.emergency_name %>

Emergency Phone: <%= @user.emergency_phone %>

Emergency Email: <%= @user.emergency_email %>

Desired Member Level: <%= @user.member_level_string %>

Payment Method: <%= @user.payment_method %>

Payee: <%= @user.payee %>

<% end %> <% if current_user.admin? then %>

Found HeatSync via: <%= simple_format @user.marketing_source %>

Left HeatSync because: <%= simple_format @user.exit_reason %>

<% end %> Certifications: <%= link_to "+ Add", (new_user_certification_path+"?user="+@user.id.to_s), :class => 'btn' if can? :create, UserCertification %>

Card: <%= link_to "+ Add", (new_card_path+"?user="+@user.id.to_s), :class => 'btn' if can? :create, Card %> <% if current_user.admin? then %>

<% else %> <%= unless @user.cards.blank? then raw("✓") end %> <% end %>

Computers: <%= link_to "+ Add", new_mac_path, :class => 'btn' if can? :create, Mac %>

<% if current_user.admin? then %> Payments:

<% else %> Last Payment: <% last_payment = @user.delinquency %> <% if last_payment < 30 %> Less than a month ago <% else %> <%= last_payment/30 %> months ago <% end %> <% end %>

Waiver? <%= @user.waiver.strftime("%B %d %Y") unless @user.waiver.blank? %>

Instructor? <%= @user.instructor? %>

<% if current_user.admin? then %>

Created: <%= @user.created_at %>

Last signed in: <%= @user.current_sign_in_at %>

<% end %> <% if can? :update, @user then %><%= link_to 'Edit', edit_user_path(@user) %> |<% end %> <%= link_to 'Back', users_path %>