coopdevs/timeoverflow

View on GitHub
app/views/application/menus/_organization_reports_menu.html.erb

Summary

Maintainability
Test Coverage
<li class="dropdown">
  <a class="dropdown-toggle" href="#" data-toggle="dropdown">
    <%= glyph :paperclip %>
    <%= t "application.navbar.reports" %>
    <b class="caret"></b>
  </a>
  <ul class="dropdown-menu" role="menu">
    <li>
      <%= link_to user_list_report_path, data: { popup: true } do %>
        <%= glyph :list_alt %>
        <%= User.model_name.human(count: :many) %>
      <% end %>
    </li>
    <li>
      <%= link_to offer_list_report_path, data: { popup: true } do %>
        <%= glyph :list_alt %>
        <%= Offer.model_name.human(count: :many) %>
      <% end %>
    </li>
    <li>
      <%= link_to inquiry_list_report_path, data: { popup: true } do %>
        <%= glyph :list_alt %>
        <%= Inquiry.model_name.human(count: :many) %>
      <% end %>
    </li>
    <li>
      <%= link_to transfer_list_report_path, data: { popup: true } do %>
        <%= glyph :list_alt %>
        <%= Transfer.model_name.human(count: :many) %>
      <% end %>
    </li>
    <li class="divider" role="presentation"></li>
    <li>
      <%= link_to download_all_report_path do %>
        <%= glyph :download %>
        <%= t 'reports.download_all' %>
      <% end %>
    </li>
  </ul>
</li>