Updating styling, fixing some errors, and adding cert logging

This commit is contained in:
2013-01-25 06:52:19 -07:00
parent 653fcc3112
commit 63b1b05010
10 changed files with 63 additions and 9 deletions

View File

@@ -4,6 +4,15 @@
<%= link_to 'New User', new_user_path %>
<% end %>
<table>
<col />
<col />
<col />
<% if current_user.admin? %><col /><% end %>
<col class="col_highlight" />
<col />
<col class="col_highlight" />
<col />
<col class="col_highlight" />
<tr>
<th>Name</th>
<th>Email</th>

View File

@@ -11,29 +11,29 @@
<p>
<b>Waiver?</b>
<%= @user.waiver %>
<%= @user.waiver.strftime("%B %d %Y") unless @user.waiver.blank? %>
</p>
<% if current_user.admin? then %>
<p>
<b>Orientation?</b>
<%= @user.orientation %>
<%= @user.orientation.strftime("%B %d %Y") unless @user.orientation.blank? %>
</p>
<% end %>
<p>
<b>Member?</b>
<%= @user.member %>
<%= raw(@user.member_status) %>
</p>
<p>
<b>Instructor?</b>
<%= @user.instructor %>
<%= @user.instructor? %>
</p>
<p>
<b>Admin?</b>
<%= @user.admin %>
<%= @user.admin? %>
</p>
<% if current_user.admin? then %>
@@ -53,5 +53,5 @@
<% if @user.certifications.blank? %><li>n/a</li><% end %>
</ul>
<%= link_to 'Edit', edit_user_path(@user) %> |
<% if can? :update, @user then %><%= link_to 'Edit', edit_user_path(@user) %> |<% end %>
<%= link_to 'Back', users_path %>