philomena/lib/philomena_web/templates/topic/poll/_display.html.slime

23 lines
923 B
Text
Raw Normal View History

2019-12-30 14:32:41 +01:00
.block__header.block__header--js-tabbed
= link "Voting", to: "#", class: "selected", data: [click_tab: "voting"]
2019-11-18 19:09:59 +01:00
2019-12-30 14:32:41 +01:00
= 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"]
2019-12-20 04:41:19 +01:00
2019-12-30 14:32:41 +01:00
.block__tab data-tab="voting"
.poll
.poll-area
= if @poll_active and not @voted and not is_nil(@conn.assigns.current_user) do
= render PhilomenaWeb.Topic.PollView, "_vote_form.html", assigns
- else
= render PhilomenaWeb.Topic.PollView, "_results.html", assigns
2019-12-30 14:32:41 +01:00
= if can?(@conn, :hide, @topic) do
.block__tab.hidden data-tab="voters"
p Loading…
.block__tab.hidden data-tab="administration"
a.button.button--state-warning.js-staff-action> href=~p"/forums/#{@forum}/topics/#{@topic}/poll/edit"
i.fa.fa-edit>
| Edit