noesya/osuny

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

Summary

Maintainability
Test Coverage
<% content_for :title, t('university.person.experiences.title') %>

<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_people_experiences_imports_path %>
</div>

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

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