From 7ddeb29998ae2c96617ae5562db0681219bb7ff1 Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Sun, 22 Apr 2018 18:55:54 +0300 Subject: [PATCH] Fix dummy user photo in profile --- apps/user/templates/user/profile.html | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/apps/user/templates/user/profile.html b/apps/user/templates/user/profile.html index 3b107ff5..8a2371b0 100644 --- a/apps/user/templates/user/profile.html +++ b/apps/user/templates/user/profile.html @@ -1,17 +1,15 @@ -{% extends "templates/lilcity/index.html" %} {% load static %} {% block content %} +{% extends "templates/lilcity/index.html" %} {% load static %} {% load thumbnail %} {% block content %}
Редактировать - {% if user.photo %}
- + {% thumbnail user.photo "120x120" crop="center" as im %} + + {% empty %} + + {% endthumbnail %}
- {% else %} -
- -
- {% endif %}
{{ user.get_full_name }}