aboutsummaryrefslogtreecommitdiff
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
parent00c29925c084edd048766937891b11ed5208b7de (diff)
Urgent; fix JS, show message for no incidents
-rw-r--r--layouts/index.html8
-rw-r--r--layouts/partials/js.html2
2 files changed, 7 insertions, 3 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>
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 @@
-<script type="javascript">
+<script type="text/javascript">
/**
* Dev toolset
*/