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

52 lines
1.4 KiB
Text

<div class="container">
<%= nav_breadcrumb translate :staff_services %>
<ul>
<% if current_account&.can_access_sidekiq_web_interface? %>
<li>
<%= link_to translate(:sidekiq), staff_sidekiq_path, target: :_blank %>
<i class="fas fa-external-link-alt fa-xs text-muted"></i>
</li>
<% end %>
<% if policy([:staff, Account]).index? %>
<li>
<%= link_to Account.model_name.human(count: 0), staff_accounts_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, ContactNetwork]).index? %>
<li>
<%= link_to ContactNetwork.model_name.human(count: 0),
staff_contact_networks_path %>
</li>
<% end %>
<% if policy([:staff, RelationStatus]).index? %>
<li>
<%= link_to RelationStatus.model_name.human(count: 0),
staff_relation_statuses_path %>
</li>
<% end %>
<% if policy([:staff, OrgUnitKind]).index? %>
<li>
<%= link_to OrgUnitKind.model_name.human(count: 0),
staff_org_unit_kinds_path %>
</li>
<% end %>
<% if policy([:staff, OrgUnit]).index? %>
<li>
<%= link_to OrgUnit.model_name.human(count: 0),
staff_org_units_path %>
</li>
<% end %>
</ul>
</div>