mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-25 04:47:59 +01:00
36 lines
1.3 KiB
Text
36 lines
1.3 KiB
Text
.block__header.block__header--js-tabbed
|
|
= link "Voting", to: "#", class: "selected", data: [click_tab: "voting"]
|
|
|
|
= if can?(@conn, :hide, @topic) do
|
|
= link "Voters", to: "#", data: [click_tab: "voters", load_tab: Routes.forum_topic_poll_vote_path(@conn, :index, @forum, @topic)]
|
|
= link "Administrate", to: "#", data: [click_tab: "administration"]
|
|
|
|
.block__tab data-tab="voting"
|
|
= cond do
|
|
- @poll.hidden_from_users ->
|
|
.walloftext
|
|
.block.block--fixed.block--warning
|
|
h1 This poll has been deleted
|
|
p
|
|
' Reason:
|
|
strong
|
|
= @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) ->
|
|
.poll
|
|
.poll-area
|
|
= render PhilomenaWeb.Topic.PollView, "_vote_form.html", assigns
|
|
|
|
- true ->
|
|
.poll
|
|
.poll-area
|
|
= render PhilomenaWeb.Topic.PollView, "_results.html", assigns
|
|
|
|
|
|
= 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=Routes.forum_topic_poll_path(@conn, :edit, @forum, @topic)
|
|
i.fa.fa-edit>
|
|
| Edit
|