From 74226ff6399eab42cddaeb0e3ab3e4a742c7b3bc Mon Sep 17 00:00:00 2001 From: Mantas Date: Sat, 25 Nov 2017 12:24:20 +0200 Subject: Urgent; fix JS, show message for no incidents --- layouts/index.html | 8 ++++++-- layouts/partials/js.html | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'layouts') diff --git a/layouts/index.html b/layouts/index.html index 68a1265..486eeab 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -72,8 +72,12 @@

Incident history

- {{ range first 10 .Data.Pages }} - {{ .Render "issue" }} + {{ if not .Data.Pages }} +

Looks like we do not have any incidents logged.

+ {{ else }} + {{ range first 10 .Data.Pages }} + {{ .Render "issue" }} + {{ end }} {{ end }}
diff --git a/layouts/partials/js.html b/layouts/partials/js.html index 9ef2a23..1e62849 100644 --- a/layouts/partials/js.html +++ b/layouts/partials/js.html @@ -1,4 +1,4 @@ -