philomena/lib/philomena_web/templates/topic/poll/vote/index.html.slime

13 lines
345 B
Text
Raw Permalink Normal View History

2019-12-30 14:32:41 +01:00
= if Enum.any?(@options) do
= for option <- @options do
h5 = option.label
= for vote <- option.poll_votes do
span.interaction-user-list-item
=> link vote.user.name, to: ~p"/profiles/#{vote.user}"
/= link "(x)", to: ~p"/forums/#{@forum}/topics/#{@topic}/poll/votes/#{vote}"
2019-12-30 14:32:41 +01:00
- else
p
em No votes to display