From 6ed4110ce9dc95fc9b314c67c01884cbbe111474 Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Sun, 17 Apr 2016 09:59:34 +0200 Subject: [PATCH] logout only if logged in --- app/templates/layout.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/templates/layout.html b/app/templates/layout.html index e090f78..7b09223 100644 --- a/app/templates/layout.html +++ b/app/templates/layout.html @@ -2,7 +2,9 @@
  • Create Pitstop
  • Statistics
  • Manual
  • -
  • Logout
  • + {% if current_user.email %} +
  • Logout
  • + {% endif %} {%- endmacro %}