From 745e5f6cbda12fe294de70060ccf16acebf468fa Mon Sep 17 00:00:00 2001 From: ailsoncgt Date: Sun, 30 Oct 2016 20:10:33 -0300 Subject: [PATCH] Fixing avatar error #185 --- users/templates/users/profile.html | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/users/templates/users/profile.html b/users/templates/users/profile.html index 92fe71c..0d5446c 100644 --- a/users/templates/users/profile.html +++ b/users/templates/users/profile.html @@ -44,7 +44,15 @@
- foto perfil + {% if user.image %} +
+ {% else %} + {% if usser.gender == 'M' %} + Avatar + {% else %} + Avatar + {% endif %} + {% endif %}
@@ -123,22 +131,21 @@ - {% if user.institution %} - - {% else %} - - {% endif %} - - + {% if user.institution %} + + {% else %} + + {% endif %} {% if user.curriculum %} - + {% else %} {% endif %} -
{% trans "Institution" %}:{{user.institution}}{% trans "Didn't inform institution" %}{{user.institution}}{% trans "Didn't inform institution" %}
{% trans "Curriculum" %}:{{user.curriculum}} + link + {% trans "Didn't upload any curriculum" %}
-- libgit2 0.21.2