From 757ec74967d967f90687e8a68ab787a5dc377c69 Mon Sep 17 00:00:00 2001 From: barisusakli <barisusakli@gmail.com> Date: Tue, 23 Jun 2015 17:03:33 -0400 Subject: [PATCH] ban/unban delete account from profile page --- templates/account/profile.tpl | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/templates/account/profile.tpl b/templates/account/profile.tpl index fcf235c..17132e7 100644 --- a/templates/account/profile.tpl +++ b/templates/account/profile.tpl @@ -26,13 +26,21 @@ <a id="follow-btn" href="#" class="btn btn-success btn-sm <!-- IF isFollowing -->hide<!-- ENDIF isFollowing -->">[[user:follow]]</a> <a id="unfollow-btn" href="#" class="btn btn-warning btn-sm <!-- IF !isFollowing -->hide<!-- ENDIF !isFollowing -->">[[user:unfollow]]</a> <!-- ENDIF !isSelf --> + + <!-- IF isAdmin --> + <br/><br/> + + <a id="banAccountBtn" href="#" class="btn btn-danger btn-sm <!-- IF banned -->hide<!-- ENDIF banned -->">[[user:ban_account]]</a> + <a id="unbanAccountBtn" href="#" class="btn btn-danger btn-sm <!-- IF !banned -->hide<!-- ENDIF !banned -->">[[user:unban_account]]</a> + <a id="deleteAccountBtn" href="#" class="btn btn-danger btn-sm">[[user:delete_account]]</a><br/><br/> + <!-- ENDIF isAdmin --> </div> - <!-- IF banned --> - <div class="text-center"> + + <div id="banLabel" class="text-center <!-- IF !banned -->hide<!-- ENDIF !banned -->"> <span class="label label-danger">[[user:banned]]</span> </div> - <!-- ENDIF banned --> + <!-- IF aboutme --> <hr/> <div component="aboutme" class="text-center">