From f4fcba887dee649ef8dd73a8b01823883daa2c59 Mon Sep 17 00:00:00 2001 From: Stephan Porada Date: Thu, 4 Jul 2019 11:36:23 +0200 Subject: [PATCH] Add title if condition --- app/templates/base.html.j2 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/templates/base.html.j2 b/app/templates/base.html.j2 index 1d00f152..505c3fc0 100644 --- a/app/templates/base.html.j2 +++ b/app/templates/base.html.j2 @@ -1,8 +1,10 @@ - - Opaque - {% block title %}{% endblock %} - + {% if title %} + Opaque – {{ title }} + {% else %} + Opaque + {% endif %} @@ -12,7 +14,7 @@ {% block body %} - + {% endblock %}