<% if controller_name == "polls" %>
  • <%= t("admin.polls.show.questions_tab") %> (<%= @poll.questions.count %>)
  • <% else %>
  • <%= link_to admin_poll_path(@poll) do %> <%= t("admin.polls.show.questions_tab") %> (<%= @poll.questions.count %>) <% end %>
  • <% end %> <% if controller_name == "booth_assignments" %>
  • <%= t("admin.polls.show.booths_tab") %> (<%= @poll.booth_assignments.select(:booth_id).distinct.count %>)
  • <% else %>
  • <%= link_to admin_poll_booth_assignments_path(@poll) do %> <%= t("admin.polls.show.booths_tab") %> (<%= @poll.booth_assignments.select(:booth_id).distinct.count %>) <% end %>
  • <% end %> <% if controller_name == "officer_assignments" %>
  • <%= t("admin.polls.show.officers_tab") %> (<%= @poll.officer_assignments.select(:officer_id).distinct.count %>)
  • <% else %>
  • <%= link_to admin_poll_officer_assignments_path(@poll) do %> <%= t("admin.polls.show.officers_tab") %> (<%= @poll.officer_assignments.select(:officer_id).distinct.count %>) <% end %>
  • <% end %> <% if controller_name == "recounts" %>
  • <%= t("admin.polls.show.recounts_tab") %>
  • <% else %>
  • <%= link_to t("admin.polls.show.recounts_tab"), admin_poll_recounts_path(@poll) %>
  • <% end %> <% if controller_name == "results" %>
  • <%= t("admin.polls.show.results_tab") %>
  • <% else %>
  • <%= link_to t("admin.polls.show.results_tab"), admin_poll_results_path(@poll) %>
  • <% end %>