Allow admin to see voting stat
This commit is contained in:
parent
3bf3754baf
commit
ca3133c17d
2 changed files with 5 additions and 3 deletions
|
@ -349,7 +349,7 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block post_description_end %}
|
{% block post_description_end %}
|
||||||
{% if can_vote %}
|
{% if can_vote or request.user.is_superuser %}
|
||||||
{% include 'problem/voting-controls.html' %}
|
{% include 'problem/voting-controls.html' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if request.user.is_authenticated and not request.profile.mute %}
|
{% if request.user.is_authenticated and not request.profile.mute %}
|
||||||
|
|
|
@ -25,12 +25,14 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
{% if can_vote %}
|
{% if can_vote or request.user.is_superuser %}
|
||||||
<div class="vote-form" id="id_vote_form_box" style="display: none">
|
<div class="vote-form" id="id_vote_form_box" style="display: none">
|
||||||
{% include 'problem/voting-form.html' %}
|
{% include 'problem/voting-form.html' %}
|
||||||
</div>
|
</div>
|
||||||
<span>
|
<span>
|
||||||
<a href="#" class="form-button" id="id_vote_button" data-featherlight="#id_vote_form_box"></a>
|
{% if can_vote %}
|
||||||
|
<a href="#" class="form-button" id="id_vote_button" data-featherlight="#id_vote_form_box"></a>
|
||||||
|
{% endif %}
|
||||||
{% if request.user.is_superuser %}
|
{% if request.user.is_superuser %}
|
||||||
- {% include 'problem/voting-stats.html' %}
|
- {% include 'problem/voting-stats.html' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue