From 19d494b080e0e6ac5a2e82231b52961fa0e9ce2b Mon Sep 17 00:00:00 2001
From: Flavio Tarsetti <flavio.tarsetti@idiap.ch>
Date: Thu, 3 Aug 2017 17:13:32 +0200
Subject: [PATCH] [accounts][templates] hide supervision management if no
 supervisee

---
 beat/web/accounts/templates/accounts/settings.html | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/beat/web/accounts/templates/accounts/settings.html b/beat/web/accounts/templates/accounts/settings.html
index fff455b06..ef92fd367 100644
--- a/beat/web/accounts/templates/accounts/settings.html
+++ b/beat/web/accounts/templates/accounts/settings.html
@@ -324,6 +324,7 @@
           <hr />
           {% endif %}
 
+          {% if supervisiontracks_valid|length > 0 %}
           <li class="list-group-item" style="text-align:center;"><b>Supervision list</b></li>
           <table class="table">
             <thead>
@@ -361,6 +362,7 @@
 
           <li class="list-group-item"><i>Valid supervisees are marked in green and supervisees that are under a revalidation process (yearly basis) are marked in yellow.
 You can remind them to revalidate there account before the expiration date or else their account will get blocked (and need to pass through an unblock procedure)</i><br>
+         {% endif %}
           </div>
         </form>
       </div>
-- 
GitLab