<h3>Domain Tagging</h3>

<%= form_tag domain_tags_path, method: :get, class: 'form-inline' do %>
  <%= text_field_tag :filter, params[:filter], class: 'form-control input-sm' %>
  <%= submit_tag 'Search', class: 'btn btn-primary btn-sm' %>
<% end %>

<table class="table table-striped">
  <thead>
    <tr>
      <th>Tag</th>
      <th>Occurrences</th>
      <th colspan="3"></th>
    </tr>
  </thead>
  <tbody>
    <% @tags.each do |t| %>
      <tr>
        <td><span class="label label-info">#<%= t.name %></span></td>
        <td><%= @counts[t.id] || 0 %></td>
        <td><%= link_to 'Details', domain_tag_path(t) %></td>
        <% if user_signed_in? && current_user.has_role?(:core) %>
          <td><%= link_to 'Edit', edit_domain_tag_path(t) %></td>
        <% end %>
        <% if user_signed_in? && current_user.has_role?(:admin) %>
          <td><%= link_to 'Delete', destroy_domain_tag_path(t), method: :delete, class: 'text-danger',
                          data: { confirm: 'Are you sure?' } %></td>
        <% end %>
      </tr>
    <% end %>
  </tbody>
</table>
<h3>Domain Tagging</h3>

<%= form_tag domain_tags_path, method: :get, class: 'form-inline' do %>
  <%= text_field_tag :filter, params[:filter], class: 'form-control input-sm' %>
  <%= submit_tag 'Search', class: 'btn btn-primary btn-sm' %>
<% end %>

<table class="table table-striped">
  <thead>
    <tr>
      <th>Tag</th>
      <th>Domains</th>
      <th colspan="3"></th>
    </tr>
  </thead>
  <tbody>
    <% @tags.each do |t| %>
      <tr>
        <td><span class="label label-info">#<%= t.name %></span></td>
        <td><%= @counts[t.id] || 0 %></td>
        <td><%= link_to 'Details', domain_tag_path(t) %></td>
        <% if user_signed_in? && current_user.has_role?(:core) %>
          <td><%= link_to 'Edit', edit_domain_tag_path(t) %></td>
        <% end %>
        <% if user_signed_in? && current_user.has_role?(:admin) %>
          <td><%= link_to 'Delete', destroy_domain_tag_path(t), method: :delete, class: 'text-danger',
                          data: { confirm: 'Are you sure?' } %></td>
        <% end %>
      </tr>
    <% end %>
  </tbody>
</table>

Fix unclear heading on domain tags index
Fix unclear heading on domain tags index
