Delete user for admin.

master
Nick Sergeant 2016-03-31 10:31:32 -04:00
parent fa12cb0c18
commit d632ca26ef
1 changed files with 9 additions and 3 deletions

View File

@ -205,9 +205,15 @@
{% endif %}
</li>
{% if snipt.user != request.user %}
<li class="report-spam">
<a target="_blank" href="/report-spam/{{ snipt.id }}/">Report Spam</a>
</li>
{% if request.user.is_superuser %}
<li class="report-spam">
<a target="_blank" href="/admin/auth/user/{{ snipt.user.id }}/delete/">Delete User</a>
</li>
{% else %}
<li class="report-spam">
<a target="_blank" href="/report-spam/{{ snipt.id }}/">Report Spam</a>
</li>
{% endif %}
{% endif %}
{% if detail and snipt.public %}
<li class="tweet">