<commit_before><%= back_link_to new_officing_residence_path %>

<h2><%= t("officing.voters.new.title") %></h2>

<% if physical_booth? %>

  <% if @polls.any? %>
    <table>
      <thead>
        <tr>
          <th><%= t("officing.voters.new.table_poll") %></th>
          <th><%= t("officing.voters.new.table_status") %></th>
          <th class="text-center"><%= t("officing.voters.new.table_actions") %></th>
        </tr>
      </thead>
      <tbody>
        <% @polls.each do |poll| %>
        <tr id="<%= dom_id(poll) %>">
          <td>
            <%= poll.name %>
          </td>
          <% if poll.votable_by?(@user) %>
            <%= render "can_vote", poll: poll %>
          <% else %>
            <%= render "already_voted" %>
          <% end %>
        </tr>
        <% end %>
      </tbody>
    </table>
  <% end %>

<% else %>

  <% if Poll.votable_by(@user).any? %>
    <div class="small-12 medium-6 large-4">
      <%= link_to t("nvotes.tablet"),
                    vote_with_tablet_officing_voter_path(@user),
                    class: "button expanded" %>
    </div>
  <% else %>
    <div class="small-12 medium-6 large-4">
      Ya ha participado en todas las votaciones.
    </div>
  <% end %>

<% end %>

<% if Poll.votable_by(@user).any? %>
  <div id="not_voted">
    <%= link_to t("officing.voters.new.not_to_vote"), namespaced_root_path, class: "button" %>
  </div>
<% end %><commit_msg>Removes back link and center button on officing voters new<commit_after><h2><%= t("officing.voters.new.title") %></h2>

<% if physical_booth? %>

  <% if @polls.any? %>
    <table>
      <thead>
        <tr>
          <th><%= t("officing.voters.new.table_poll") %></th>
          <th><%= t("officing.voters.new.table_status") %></th>
          <th class="text-center"><%= t("officing.voters.new.table_actions") %></th>
        </tr>
      </thead>
      <tbody>
        <% @polls.each do |poll| %>
        <tr id="<%= dom_id(poll) %>">
          <td>
            <%= poll.name %>
          </td>
          <% if poll.votable_by?(@user) %>
            <%= render "can_vote", poll: poll %>
          <% else %>
            <%= render "already_voted" %>
          <% end %>
        </tr>
        <% end %>
      </tbody>
    </table>
  <% end %>

<% else %>

  <% if Poll.votable_by(@user).any? %>
    <div class="small-12 medium-6 large-4">
      <%= link_to t("nvotes.tablet"),
                    vote_with_tablet_officing_voter_path(@user),
                    class: "button expanded" %>
    </div>
  <% else %>
    <div class="small-12 medium-6 large-4">
      Ya ha participado en todas las votaciones.
    </div>
  <% end %>

<% end %>

<% if Poll.votable_by(@user).any? %>
  <div id="not_voted">
    <div class="row margin">
      <div class="small-12 column text-center">
        <%= link_to t("officing.voters.new.not_to_vote"), namespaced_root_path, class: "button margin-top" %>
      </div>
    </div>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.2033898305084746, 'fraction_numerical': 0.007457627118644068, 'mean_word_length': 2.029774127310062, 'pattern_counts': {'":': 0, '<': 110, '<?xml version=': 0, '>': 110, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7376099', 'n_tokens_mistral': 1167, 'n_tokens_neox': 1052, 'n_words': 196}