From d26b5e0f3a0f79a6b8165004e19b65df836b1e08 Mon Sep 17 00:00:00 2001 From: Thibaut Horel Date: Tue, 7 Apr 2015 15:32:27 -0400 Subject: Do not show empty line when there is no second line in the address --- templates/user/show.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/user/show.html b/templates/user/show.html index 20464ce..3d06ea6 100644 --- a/templates/user/show.html +++ b/templates/user/show.html @@ -11,7 +11,9 @@ Fête{{user.nameday or ""}} Adresse
{{user.address_line1 or ""}}
- {{user.address_line2 or ""}}
+ {% if user.address_line2 %} + {{user.address_line2}}
+ {% endif %} {{user.address_city_line or ""}}
Dernière connexion{{user.last_seen|format_date}} -- cgit v1.2.3-70-g09d2