app/views/admin/university/people/categories/show.html.erb
<% content_for :title, @l10n %>
<% if @category.parent %>
<%= osuny_label University::Person::Category.human_attribute_name('parent') %>
<p>
<%= osuny_link_localized_if can?(:read, @category.parent),
@category.parent,
admin_university_person_category_path(@category.parent.id) %>
</p>
<% end %>
<% if @category.children.any? %>
<%= osuny_label University::Person::Category.human_attribute_name('children') %>
<ul class="list-unstyled mb-0">
<% @category.children.each do |child| %>
<li>
<%= osuny_link_localized_if can?(:read, child),
child,
admin_university_person_category_path(child.id) %>
</li>
<% end %>
</ul>
<% end %>
<% if @people.total_count > 0 %>
<p>
<%= @people.total_count %>
<%= University::Person.model_name.human(count: @people.total_count).downcase %>
</p>
<%= render 'admin/university/people/list', people: @people %>
<%= paginate @people %>
<% end %>
<% content_for :action_bar_left do %>
<%= destroy_link @category %>
<%= static_link static_admin_university_person_category_path(@category) %>
<% end %>
<% content_for :action_bar_right do %>
<%= edit_link @category %>
<% end %>