Finish Question/poll support
This commit is contained in:
parent
3d5a86d51e
commit
fb0081a554
8 changed files with 151 additions and 71 deletions
|
@ -291,7 +291,7 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if object.ap_type == "Question" %}
|
||||
{% if object.ap_type == "Question" and (not object.sensitive or (object.sensitive and object.permalink_id in request.query_params.getlist("show_more"))) %}
|
||||
{% set can_vote = is_admin and object.is_from_inbox and not object.is_poll_ended and not object.voted_for_answers %}
|
||||
{% if can_vote %}
|
||||
<form action="{{ request.url_for("admin_actions_vote") }}" method="POST">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue