mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 23:08:00 +01:00
19 lines
548 B
Text
19 lines
548 B
Text
= 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."
|
|
|
|
- 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
|