noesya/osuny

View on GitHub
app/views/admin/university/apps/index.html.erb

Summary

Maintainability
Test Coverage
<% content_for :title, University::App.model_name.human(count: 2) %>

<%
action = ''
action += link_to t('create'),
                  new_admin_university_app_path,
                  class: button_classes if can?(:create, University::App)
subtitle = t('admin.elements', count: @apps.total_count)
%>
<%= osuny_panel University::App.model_name.human(count: 2), subtitle: subtitle, action: action do %>
  <%= render 'admin/university/apps/list', apps: @apps %>
  <%= paginate @apps %>
<% end %>