noesya/osuny

View on GitHub
app/views/admin/communication/websites/agenda/events/index.html.erb

Summary

Maintainability
Test Coverage
<% content_for :title, Communication::Website::Agenda::Event.model_name.human(count: 2) %>

<div class="d-flex justify-content-between mb-4">
  <p>
    <%= @events.total_count %>
    <%= Communication::Website::Agenda::Event.model_name.human(count: @events.total_count).downcase %>
  </p>
  <%= render 'filters', current_path: admin_communication_website_agenda_events_path, website: @website %>
</div>

<%= render 'admin/communication/websites/agenda/events/list', events: @events %>
<%= paginate @events %>

<% content_for :action_bar_right do %>
  <%= create_link Communication::Website::Agenda::Event %>
<% end %>