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/staff/home/show.html.erb
2019-03-27 10:36:39 +05:00

28 lines
761 B
Text

<div class="container">
<ul>
<% if current_user&.account&.can_access_sidekiq_web_interface? %>
<li>
<%= link_to translate(:sidekiq_web_interface), staff_sidekiq_path %>
</li>
<% end %>
<% 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>