mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
poll - handle unauthenticated voters #181
This commit is contained in:
parent
0d9d4f12cb
commit
742ce141e8
1 changed files with 6 additions and 1 deletions
|
@ -152,7 +152,12 @@
|
|||
<p>{{ _('Total votes: %(total_votes)d.', total_votes=poll_total_votes) }}</p>
|
||||
<p>{{ _('Poll closes') }} {{ moment(poll_data.end_poll).fromNow(refresh=True) }}.</p>
|
||||
{% elif poll_form %}
|
||||
<form action='/poll/{{ post.id }}/vote' method="post">
|
||||
{% if current_user.is_authenticated %}
|
||||
<form action='/poll/{{ post.id }}/vote' method="post">
|
||||
{% else %}
|
||||
<form action='/auth/login' method="get">
|
||||
<input type="hidden" name="next" value="/post/{{ post.id }}">
|
||||
{% endif %}
|
||||
<ul>
|
||||
{% for choice in poll_choices %}
|
||||
{% if poll_data.mode == 'single' %}
|
||||
|
|
Loading…
Add table
Reference in a new issue