gnu-social/plugins/Poll/templates/poll/view.html.twig

19 lines
585 B
Twig
Raw Normal View History

<div class="poll">
<p class="poll-question">Q. {{ vars.question }}</p>
{% if vars.form is not null %}
{% block form %}
<div class='form-single'>
{{ form(vars.form) }}
</div>
{% endblock form %}
2021-04-30 10:51:03 +09:00
{% else %}
<ul>
2021-04-30 10:51:03 +09:00
{% for question, votes in vars.responses %}
<li class="result">
<p class="result-option">{{ question }}</p>
<p class="result-vote">{{ votes }} </p>
</li>
{% endfor %}
</ul>
{% endif %}
</div>