From 5f4affd8ec7182a7fa2d7dbcc03fb151e97008bb Mon Sep 17 00:00:00 2001 From: grisel-davy Date: Fri, 10 Aug 2018 13:05:13 +0200 Subject: [PATCH] Vu profil d'un autre user et solde correct --- users/templates/users/profil.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/users/templates/users/profil.html b/users/templates/users/profil.html index 5fde20f2..d1f3ee4a 100644 --- a/users/templates/users/profil.html +++ b/users/templates/users/profil.html @@ -32,7 +32,11 @@ with this program; if not, write to the Free Software Foundation, Inc., {% block content %}
-

Welcome {{ users.name }} {{ users.surname }}

+ {% if user == users %} +

Welcome {{ users.name }} {{ users.surname }}

+ {% else %} +

Profil de {{ users.name }} {{ users.surname }}

+ {% endif %}
@@ -70,7 +74,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
- € {{ user.solde }} + € {{ users.solde }}