<% content_for :title do %>Providers<% end %>

<div id='main-container' class='container'>
  <%= render :partial=>'krikri/shared/flash_message' %>

  <h1>Dashboard</h1>
  <h2><%= provider_name(@current_provider) %></h2>

  <ul>
  <% @providers.each do |provider| %>
    <li>
      <%= link_to provider_name(provider), { controller: 'providers',
        action: 'show', id: provider.id } %> (<%= provider.records.count %> records)
    </li>
  <% end %>
  </ul>

</div>

<% content_for :title do %>Providers<% end %>

<div id='main-container' class='container'>
  <%= render :partial=>'krikri/shared/flash_message' %>

  <h1>Dashboard</h1>
  <h2><%= provider_name(@current_provider) %></h2>

  <ul>
  <% @providers.each do |provider| %>
    <li>
      <%= link_to provider_name(provider), { controller: 'providers',
        action: 'show', id: provider.id } %>
    </li>
  <% end %>
  </ul>

</div>

Remove record counts from provider index view
Remove record counts from provider index view

The provider index view ("dashboard") calls the SPARQL query
associated with Krikri::Provider#records for each provider listed.
The counts are definitely useful, but the performance issues we're
seeing now are preventing the page loads from completing currently.
It may be more useful to generate the counts from Solr index, or
figuring out another way of caching them for each activity (e.g.
in the database).
