From 4dbb2be4599a09b06d567ea6a567b345de7fb930 Mon Sep 17 00:00:00 2001 From: grisel-davy Date: Sat, 16 Jun 2018 09:57:21 +0200 Subject: [PATCH] =?UTF-8?q?Prise=20en=20compte=20du=20bannissement=20et=20?= =?UTF-8?q?d=C3=A9ployement=20des=20des=20infos=20si=20clique=20dans=20les?= =?UTF-8?q?=20titres?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/css/base.css | 13 +++++++++++ users/templates/users/profil.html | 37 ++++++++++++++++++++----------- 2 files changed, 37 insertions(+), 13 deletions(-) diff --git a/static/css/base.css b/static/css/base.css index 2dc17770..68609d39 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -115,6 +115,19 @@ footer a { } /* For tables with long text in cells */ +.panel-heading.dashboard{ + text-align: center; +} + +.panel-body.dashboard{ + text-align: center; + height: 60px; + vertical-align:middle; +} +#grad_red { + background: red; /* For browsers that do not support gradients */ + background: linear-gradient(#ff6363, #fefefe); /* Standard syntax (must be last) */ +} .table.long_text{ table-layout: fixed; diff --git a/users/templates/users/profil.html b/users/templates/users/profil.html index 2029a526..9628097a 100644 --- a/users/templates/users/profil.html +++ b/users/templates/users/profil.html @@ -40,20 +40,28 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endif %}
- {% if users.is_adherent %} -
-
Connécté
-
Fin de connexion: {{user.end_adhesion|date:"d M Y"}}
-
- {% else %} + {% if users.is_ban%}
-
Non connécté
+
Votre compte est banni
- - - Adhérer - + Fin du ban : {{user.end_ban|date:"d M Y"}} +
+
+ {% elif not users.is_adherent%} +
+
Non Connécté
+ + {% else %} +
+
Connécté
+
+ Fin de connexion: {{user.end_adhesion|date:"d M Y"}} +
{% endif %}
@@ -63,7 +71,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,