add link to delete reviews
This commit is contained in:
parent
d98f9b82a8
commit
da4848f307
1 changed files with 8 additions and 0 deletions
|
@ -124,6 +124,14 @@
|
|||
<div class="vote pull-left">
|
||||
<span>{{ review.vote }}</span>
|
||||
</div>
|
||||
{% if is_manager %}
|
||||
<div class="pull-right">
|
||||
<form class="form-inline" action="{% url review_delete review.id %}" method="POST">
|
||||
{% csrf_token %}
|
||||
<button class="btn btn-mini btn-danger" type="submit">Delete</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="review-content">
|
||||
<b>{% user_display review.user %}</b>
|
||||
{{ review.submitted_at|timesince }} ago <br />
|
||||
|
|
Loading…
Reference in a new issue