1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/views/staffs/home/show.html.erb

22 lines
576 B
Text

<div class="container">
<ul>
<% if policy([:staff, :person]).index? %>
<li>
<%= link_to Person.model_name.human(count: 0), staff_people_path %>
</li>
<% end %>
<% if policy([:staff, :passport]).index? %>
<li>
<%= link_to Passport.model_name.human(count: 0), staff_passports_path %>
</li>
<% end %>
<% if policy([:staff, :membership_app]).index? %>
<li>
<%= link_to MembershipApp.model_name.human(count: 0),
staff_membership_apps_path %>
</li>
<% end %>
</ul>
</div>