<%= link("Voting", to: "#", class: "selected", data: [click_tab: "voting"]) %> <%= if can?(@conn, :hide, @topic) do %> <%= link("Voters", to: "#", data: [click_tab: "voters", load_tab: ~p"/forums/#{@forum}/topics/#{@topic}/poll/votes"]) %> <%= link("Administrate", to: "#", data: [click_tab: "administration"]) %> <% end %>
<%= cond do %> <% @poll.hidden_from_users -> %>

This poll has been deleted

Reason: <%= @poll.deletion_reason || "Unknown (likely deleted in error). Please contact a moderator." %>

<% @poll_active and not @voted and not is_nil(@conn.assigns.current_user) -> %>
<%= render(PhilomenaWeb.Topic.PollView, "_vote_form.html", assigns) %>
<% true -> %>
<%= render(PhilomenaWeb.Topic.PollView, "_results.html", assigns) %>
<% end %>
<%= if can?(@conn, :hide, @topic) do %> <% end %>