aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.html
diff options
context:
space:
mode:
authorMantas <mistermantas@users.noreply.github.com>2017-11-25 12:24:20 +0200
committerMantas <mistermantas@users.noreply.github.com>2017-11-25 12:24:20 +0200
commit74226ff6399eab42cddaeb0e3ab3e4a742c7b3bc (patch)
tree8a54af120a502ee306c3090271cc6b4031d233d5 /layouts/index.html
parent00c29925c084edd048766937891b11ed5208b7de (diff)
Urgent; fix JS, show message for no incidents
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html8
1 files changed, 6 insertions, 2 deletions
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 @@
<div class="contain">
<h2 class="center">Incident history</h2>
- {{ range first 10 .Data.Pages }}
- {{ .Render "issue" }}
+ {{ if not .Data.Pages }}
+ <p class="center">Looks like we do not have any incidents logged.</p>
+ {{ else }}
+ {{ range first 10 .Data.Pages }}
+ {{ .Render "issue" }}
+ {{ end }}
{{ end }}
</div>