Open-Source-Access-Control-.../app/views/users/show.html.erb

93 lines
1.8 KiB
Plaintext
Raw Normal View History

<%= image_tag @user.gravatar_url(:default => "http://members.heatsynclabs.org/assets/nil.png") %>
<p>
<b>Name:</b>
<%= @user.name %>
</p>
<p>
2013-01-25 18:11:39 +00:00
<b>Waiver?</b>
<%= @user.waiver.strftime("%B %d %Y") unless @user.waiver.blank? %>
</p>
2012-10-17 05:59:35 +00:00
<p>
2013-01-25 18:11:39 +00:00
<b>Current Member?</b>
<%= raw(@user.member_status) %>
</p>
2013-01-25 18:11:39 +00:00
<p>
<b>Instructor?</b>
<%= @user.instructor? %>
</p>
<p>
<b>Admin?</b>
<%= @user.admin? %>
</p>
<% if current_user.admin? then %>
2013-01-25 18:11:39 +00:00
<p>
<b>Email:</b>
<%= @user.email %>
</p>
<p>
<b>Orientation?</b>
<%= @user.orientation.strftime("%B %d %Y") unless @user.orientation.blank? %>
</p>
2013-01-25 14:23:06 +00:00
<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>
2013-01-25 18:11:39 +00:00
<% end %>
2013-01-25 14:23:06 +00:00
<p>
<b>Current Skills:</b>
<%= simple_format @user.current_skills %>
</p>
<p>
<b>Desired Skills:</b>
<%= simple_format @user.desired_skills %>
</p>
<p>
2013-01-25 18:11:39 +00:00
<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("&#x2713;") 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 %>