From 1277dbe5b17503cff07af6c67b17ed6f4e457ba1 Mon Sep 17 00:00:00 2001 From: Andreas Mieke Date: Thu, 1 Oct 2015 19:36:17 +0200 Subject: [PATCH] Adding check if there is data --- gserver/templates/header.html | 40 ++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/gserver/templates/header.html b/gserver/templates/header.html index 316c46f..9574a4a 100644 --- a/gserver/templates/header.html +++ b/gserver/templates/header.html @@ -8,25 +8,27 @@ - {{ if .data.EP }} - - - - - - - - - {{ end }} - {{ if .data.LT }} - - - - - - - - + {{ if .data }} + {{ if .data.EP }} + + + + + + + + + {{ end }} + {{ if .data.LT }} + + + + + + + + + {{ end }} {{ end }}