<% @competitors.each_slice(8) do |competitors_for_page| %>
  <table>
    <% competitors_for_page.each_slice(2) do |competitors_for_row| %>
      <tr>
        <% competitors_for_row.each do |competitor| %>
          <td>
            <span class="competition"><%= current_competition.name %></span>

            <div class="namebox">
              <span class="name"><%= competitor.name %></span>
              <% if competitor.delegate? %>
                <span class="staff">WCA DELEGATE</span>
              <% elsif competitor.staff? %>
                <span class="staff">TEAM</span>
              <% end %>
            </div>

            <span class="country">
              <%= competitor.country.name %>
              <% if current_competition.city_name && competitor.local %>
                (<%= current_competition.city_name %>)
              <% end %>
            </span>

            <% if competitor.nametag %>
              <span class="extra">
                <%= competitor.nametag.html_safe %>
              </span>
            <% elsif competitor.wca %>
              <span class="extra">
                <%= @wca_nametags.nametag(competitor.wca).try!(:html_safe) %>
              </span>
            <% end %>
          </td>
        <% end %>
      </tr>
    <% end %>
  </table>
  <hr>
<% end %>

<% @competitors.each_slice(8) do |competitors_for_page| %>
  <table>
    <% competitors_for_page.each_slice(2) do |competitors_for_row| %>
      <tr>
        <% competitors_for_row.each do |competitor| %>
          <td>
            <span class="competition"><%= current_competition.name %></span>

            <div class="namebox">
              <span class="name"><%= competitor.name %></span>
              <% if competitor.delegate? %>
                <span class="staff">WCA DELEGATE</span>
              <% elsif competitor.staff? %>
                <span class="staff">TEAM</span>
              <% end %>
            </div>

            <span class="country">
              <%= competitor.country.name %>
            </span>

            <% if competitor.nametag %>
              <span class="extra">
                <%= competitor.nametag.html_safe %>
              </span>
            <% elsif competitor.wca %>
              <span class="extra">
                <%= @wca_nametags.nametag(competitor.wca).try!(:html_safe) %>
              </span>
            <% end %>
          </td>
        <% end %>
      </tr>
    <% end %>
  </table>
  <hr>
<% end %>

Remove local city from nametags
Remove local city from nametags
