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
2019-09-13 23:47:44 +05:00

37 lines
988 B
Text

<div class="container">
<%= nav_breadcrumb translate :staff_services %>
<ul>
<% if current_account&.can_access_sidekiq_web_interface? %>
<li>
<%= link_to 'Sidekiq', staff_sidekiq_path %>
</li>
<% end %>
<% if policy(%i[staff account]).index? %>
<li>
<%= link_to Account.model_name.human(count: 0), staff_accounts_path %>
</li>
<% end %>
<% if policy(%i[staff person]).index? %>
<li>
<%= link_to Person.model_name.human(count: 0), staff_people_path %>
</li>
<% end %>
<% if policy(%i[staff contact_network]).index? %>
<li>
<%= link_to ContactNetwork.model_name.human(count: 0),
staff_contact_networks_path %>
</li>
<% end %>
<% if policy(%i[staff x509_certificate]).index? %>
<li>
<%= link_to X509Certificate.model_name.human(count: 0),
staff_x509_certificates_path %>
</li>
<% end %>
</ul>
</div>