noesya/osuny

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

Summary

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

<div class="d-flex justify-content-between mb-4">
  <p>
    <%= @imports.total_count %>
    <%= Import.model_name.human(count: @imports.total_count).downcase %>
  </p>
  <%= render 'admin/imports/filters', current_path: admin_university_organizations_imports_path %>
</div>


<%= render 'admin/imports/list', imports: @imports, path_pattern: 'admin_university_organizations_import_path' %>

<% content_for :action_bar_right do %>
  <%= link_to_if  can?(:create, University::Organization),
                  t('create'),
                  new_admin_university_organizations_import_path,
                  class: button_classes %>
<% end %>