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

58 lines
890 B
Plaintext
Raw Normal View History

<p>
<b>Name:</b>
<%= @user.name %>
</p>
<p>
<b>Email:</b>
<%= @user.email %>
</p>
2012-10-17 05:59:35 +00:00
<p>
<b>Waiver?</b>
<%= @user.waiver %>
</p>
<% if current_user.admin? then %>
<p>
<b>Orientation?</b>
<%= @user.orientation %>
</p>
<% end %>
<p>
<b>Member?</b>
<%= @user.member %>
</p>
<p>
<b>Instructor?</b>
<%= @user.instructor %>
2012-10-17 05:59:35 +00:00
</p>
<p>
<b>Admin?</b>
<%= @user.admin %>
</p>
<% if current_user.admin? then %>
<p>
<b>Cards:</b>
<% @user.cards.each do |c| %>
<%= link_to c.card_number, c %><%= "," unless c == @user.cards.last %>
<% end %>
</p>
<% end %>
<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>
<%= link_to 'Edit', edit_user_path(@user) %> |
<%= link_to 'Back', users_path %>