diff options
author | Mantas <mistermantas@users.noreply.github.com> | 2017-11-25 12:24:20 +0200 |
---|---|---|
committer | Mantas <mistermantas@users.noreply.github.com> | 2017-11-25 12:24:20 +0200 |
commit | 74226ff6399eab42cddaeb0e3ab3e4a742c7b3bc (patch) | |
tree | 8a54af120a502ee306c3090271cc6b4031d233d5 /layouts/index.html | |
parent | 00c29925c084edd048766937891b11ed5208b7de (diff) |
Urgent; fix JS, show message for no incidents
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 8 |
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> |