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

---
 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 93246b318..fff455b06 100644
--- a/beat/web/accounts/templates/accounts/settings.html
+++ b/beat/web/accounts/templates/accounts/settings.html
@@ -280,6 +280,7 @@
 </div>
 
 {% else %}
+{% if supervisiontracks_pending|length > 0 or supervisiontracks_valid|length > 0 %}
 <div class="row">
 
   <div class="col-sm-6 col-sm-offset-1">
@@ -369,6 +370,7 @@ You can remind them to revalidate there account before the expiration date or el
   </div>
 </div>
 
+{% endif %}
 {% endif %}
 
 {% change_supervisor "change_supervisor" %}
-- 
GitLab