[odrs-web/oscp] Show the number of reviews from the user before deleting



commit 7568cb7cef61a840ccf0da7f31f5ea546d4d5581
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 &amp; 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 &amp; 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]