93 lines
1.8 KiB
Plaintext
93 lines
1.8 KiB
Plaintext
<%= image_tag @user.gravatar_url(:default => "http://members.heatsynclabs.org/assets/nil.png") %>
|
|
|
|
<p>
|
|
<b>Name:</b>
|
|
<%= @user.name %>
|
|
</p>
|
|
|
|
<p>
|
|
<b>Waiver?</b>
|
|
<%= @user.waiver.strftime("%B %d %Y") unless @user.waiver.blank? %>
|
|
</p>
|
|
|
|
<p>
|
|
<b>Current Member?</b>
|
|
<%= raw(@user.member_status) %>
|
|
</p>
|
|
|
|
<p>
|
|
<b>Instructor?</b>
|
|
<%= @user.instructor? %>
|
|
</p>
|
|
|
|
<p>
|
|
<b>Admin?</b>
|
|
<%= @user.admin? %>
|
|
</p>
|
|
|
|
|
|
<% if current_user.admin? then %>
|
|
<p>
|
|
<b>Email:</b>
|
|
<%= @user.email %>
|
|
</p>
|
|
|
|
<p>
|
|
<b>Orientation?</b>
|
|
<%= @user.orientation.strftime("%B %d %Y") unless @user.orientation.blank? %>
|
|
</p>
|
|
<p>
|
|
<b>Emergency Name:</b>
|
|
<%= @user.emergency_name %>
|
|
</p>
|
|
<p>
|
|
<b>Emergency Phone:</b>
|
|
<%= @user.emergency_phone %>
|
|
</p>
|
|
<p>
|
|
<b>Emergency Email:</b>
|
|
<%= @user.emergency_email %>
|
|
</p>
|
|
<p>
|
|
<b>Desired Member Level:</b>
|
|
<%= @user.member_level %>
|
|
</p>
|
|
<p>
|
|
<b>Payment Method:</b>
|
|
<%= @user.payment_method %>
|
|
</p>
|
|
<p>
|
|
<b>Phone:</b>
|
|
<%= @user.phone %>
|
|
</p>
|
|
<% end %>
|
|
<p>
|
|
<b>Current Skills:</b>
|
|
<%= simple_format @user.current_skills %>
|
|
</p>
|
|
<p>
|
|
<b>Desired Skills:</b>
|
|
<%= simple_format @user.desired_skills %>
|
|
</p>
|
|
<p>
|
|
<b>Card:</b>
|
|
<% if current_user.admin? then %>
|
|
<% @user.cards.each do |c| %>
|
|
<%= link_to c.card_number, c %><%= "," unless c == @user.cards.last %>
|
|
<% end %>
|
|
<% else %>
|
|
<%= unless @user.cards.blank? then raw("✓") end %>
|
|
<% end %>
|
|
</p>
|
|
|
|
<b>Certifications:</b>
|
|
<ul>
|
|
<% @user.certifications.each do |certification| %>
|
|
<li><%= link_to certification.name, certification %></li>
|
|
<% end %>
|
|
<% if @user.certifications.blank? %><li>n/a</li><% end %>
|
|
</ul>
|
|
|
|
<% if can? :update, @user then %><%= link_to 'Edit', edit_user_path(@user) %> |<% end %>
|
|
<%= link_to 'Back', users_path %>
|