Fine tuned abilities and updated how membership is tracked
This commit is contained in:
@@ -9,14 +9,19 @@
|
||||
<body>
|
||||
<div id="header">
|
||||
<%= link_to 'Users', users_path if can? :read, User %>
|
||||
<%= link_to 'Cards', cards_path if can? :read, Card %>
|
||||
<%= link_to 'Certifications', certifications_path if can? :read, Certification %>
|
||||
<%= link_to 'Cards', cards_path if can? :manage, Card %>
|
||||
<% if can? :manage, UserCertification %>
|
||||
<%= link_to 'Cert Classes', certifications_path if can? :read, Certification %>
|
||||
<%= link_to 'User Certs', user_certifications_path if can? :create, UserCertification %>
|
||||
<% else %>
|
||||
<%= link_to 'Certifications', certifications_path if can? :read, Certification %>
|
||||
<% end %>
|
||||
<%= link_to 'Logs', door_logs_path if can? :read, DoorLog %>
|
||||
<%= link_to 'Sign out', destroy_user_session_path, :method => :delete if user_signed_in? %>
|
||||
<%= link_to 'Sign in', new_user_session_path unless user_signed_in? %>
|
||||
</div>
|
||||
<p class="notice"><%= notice %></p>
|
||||
<p class="alert"><%= alert %></p>
|
||||
<p class="notice"><%= raw(notice) %></p>
|
||||
<p class="alert"><%= raw(alert) %></p>
|
||||
<%= yield %>
|
||||
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user