[odrs-web] Show the number of reviews from the user before deleting
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odrs-web] Show the number of reviews from the user before deleting
- Date: Wed, 3 Jul 2019 21:12:58 +0000 (UTC)
commit 4ee17e1c2be5d591ec2141880d8fe7028fe1ff72
Author: Richard Hughes <richard hughsie com>
Date: Wed Jul 3 22:12:48 2019 +0100
Show the number of reviews from the user before deleting
app_data/odrs/templates/show.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app_data/odrs/templates/show.html b/app_data/odrs/templates/show.html
index ca7971c..cd87240 100644
--- a/app_data/odrs/templates/show.html
+++ b/app_data/odrs/templates/show.html
@@ -122,7 +122,7 @@
</tr>
</table>
<button class="card-link btn btn-action" type="submit">Modify</button>
- <a class="card-link btn btn-danger pull-right" href="{{url_for('.admin_user_ban',
user_hash=r.user.user_hash)}}">Ban & Delete All</a>
+ <a class="card-link btn btn-danger pull-right" href="{{url_for('.admin_user_ban',
user_hash=r.user.user_hash)}}">Ban & Delete {{r.user.reviews|length}} Review</a>
<a class="card-link btn btn-warning pull-right" href="{{url_for('.admin_delete_force',
review_id=r.review_id)}}">Remove Forever</a>
</div>
</div>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]