diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2015-04-07 15:32:27 -0400 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2015-04-07 19:04:12 -0400 |
| commit | d26b5e0f3a0f79a6b8165004e19b65df836b1e08 (patch) | |
| tree | cf253a3a2970cd1ee3f9b0c3d6e5a7ef268caedc /templates | |
| parent | d4874db3d2db48995b12381e379108ed32d35096 (diff) | |
| download | famille-flask-d26b5e0f3a0f79a6b8165004e19b65df836b1e08.tar.gz | |
Do not show empty line when there is no second line in the address
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/user/show.html | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ <tr><th>Fête</th><td>{{user.nameday or ""}}</td></tr> <tr><th>Adresse</th><td><address> {{user.address_line1 or ""}}<br/> - {{user.address_line2 or ""}}<br/> + {% if user.address_line2 %} + {{user.address_line2}}<br/> + {% endif %} {{user.address_city_line or ""}}</address> </td></tr> <tr><th>Dernière connexion</th><td>{{user.last_seen|format_date}}</td></tr> |
