aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exampleSite/config.yml2
-rw-r--r--exampleSite/content/issues/2018-06-13-maintenance-window.md3
-rw-r--r--exampleSite/content/issues/2019-10-04-testing-cstate-functions.md11
-rw-r--r--exampleSite/content/issues/2019-10-08-testing-new-pipeline.md13
-rw-r--r--layouts/issues/issue.html13
-rw-r--r--layouts/issues/small.html52
-rw-r--r--layouts/partials/index/incidents-yearly.html4
7 files changed, 78 insertions, 20 deletions
diff --git a/exampleSite/config.yml b/exampleSite/config.yml
index f0a19cd..0a3afe1 100644
--- a/exampleSite/config.yml
+++ b/exampleSite/config.yml
@@ -170,7 +170,7 @@ params:
#
# Default: true
# BOOLEAN; `true`, `false`
- enableYearlyIncidentHistory: false
+ enableYearlyIncidentHistory: true
# Should we show the logo or the title
# of the status page?
diff --git a/exampleSite/content/issues/2018-06-13-maintenance-window.md b/exampleSite/content/issues/2018-06-13-maintenance-window.md
index 6b75810..dae3afb 100644
--- a/exampleSite/content/issues/2018-06-13-maintenance-window.md
+++ b/exampleSite/content/issues/2018-06-13-maintenance-window.md
@@ -1,7 +1,8 @@
---
title: Maintenance Window
date: 2018-06-13 15:54:00
-resolved: false
+resolved: true
+resolvedWhen: 2018-06-13 16:54:00
# Possible severity levels: down, disrupted, notice
severity: disrupted
affected:
diff --git a/exampleSite/content/issues/2019-10-04-testing-cstate-functions.md b/exampleSite/content/issues/2019-10-04-testing-cstate-functions.md
new file mode 100644
index 0000000..e8e2250
--- /dev/null
+++ b/exampleSite/content/issues/2019-10-04-testing-cstate-functions.md
@@ -0,0 +1,11 @@
+---
+title: Testing New cState Features
+date: 2019-10-04 18:05:00
+resolvedWhen: 2019-10-04 18:05:00
+informational: true
+section: issue
+---
+
+There is a new feature in cState version 4 that lets you make what are called _informational_ posts. The main difference is that there will be no _Unresolved_ or _Resolved in under a minute_ text on the pages.
+
+This is essentially a page with a date and title. \ No newline at end of file
diff --git a/exampleSite/content/issues/2019-10-08-testing-new-pipeline.md b/exampleSite/content/issues/2019-10-08-testing-new-pipeline.md
new file mode 100644
index 0000000..c30358c
--- /dev/null
+++ b/exampleSite/content/issues/2019-10-08-testing-new-pipeline.md
@@ -0,0 +1,13 @@
+---
+title: New Pipeline Rollout
+date: 2019-10-05 16:24:00
+resolved: false
+resolvedWhen: 2019-10-05 16:58:00
+# Possible severity levels: down, disrupted, notice
+severity: disrupted
+affected:
+ - API
+section: issue
+---
+
+There may be disruptions in the rollout. \ No newline at end of file
diff --git a/layouts/issues/issue.html b/layouts/issues/issue.html
index c344f57..24cadd8 100644
--- a/layouts/issues/issue.html
+++ b/layouts/issues/issue.html
@@ -24,7 +24,8 @@
{{ end }}
</small></p>
- {{ if .Params.Resolved }}
+ {{ if .Params.informational }}
+ {{ else if .Params.Resolved }}
{{ $t := (time .Params.ResolvedWhen) }}
{{ $timeDiff := (sub $t.Unix .Date.Unix) }}
{{ $diffInMin := (div $timeDiff 60) }}
@@ -79,7 +80,15 @@
{{ end }}
{{ end }}
{{ else }}
- <strong class="error">{{ T "downtimeOngoing" }}</strong>
+ <strong class="error">
+ {{ if eq .Params.severity "down" }}
+ ◼
+ {{ else if eq .Params.severity "disrupted" }}
+ ▲
+ {{ else }}
+ ◆
+ {{ end }}
+ {{ T "downtimeOngoing" }}</strong>
{{ end }}
<hr>
diff --git a/layouts/issues/small.html b/layouts/issues/small.html
index ef30b75..9349046 100644
--- a/layouts/issues/small.html
+++ b/layouts/issues/small.html
@@ -6,7 +6,23 @@
{{ $isDown := where $active "Params.severity" "=" "down" }}
<a href="{{ .Permalink }}" class="issue no-underline">
- {{ if .Params.Resolved }}
+ {{ if .Params.informational }}
+
+ <small class="date float-right">
+ {{ if .Site.Params.dateFormat }}
+ {{ .Date.Format .Site.Params.dateFormat }}
+ {{ else }}
+ {{ .Date.Format "January 2, 2006 at 3:04 PM" }}
+ {{ end }}
+ </small>
+
+ <h3>
+ {{ .Title }} &nbsp;ℹ
+ </h3>
+ <span class="faded">{{ .Summary | truncate 200 }}
+ </span>
+
+ {{ else if .Params.Resolved }}
<small class="date float-right">
{{ if .Site.Params.dateFormat }}
{{ .Date.Format .Site.Params.dateFormat }}
@@ -49,24 +65,30 @@
</div>
{{ end }}
{{ end }}
-
-
{{ else }}
- <small class="date float-right">
- {{ if .Site.Params.dateFormat }}
- {{ .Date.Format .Site.Params.dateFormat }}
- {{ else }}
- {{ .Date.Format "January 2, 2006 at 3:04 PM" }}
- {{ end }}
- </small>
+ <small class="date float-right">
+ {{ if .Site.Params.dateFormat }}
+ {{ .Date.Format .Site.Params.dateFormat }}
+ {{ else }}
+ {{ .Date.Format "January 2, 2006 at 3:04 PM" }}
+ {{ end }}
+ </small>
- <h3>
- {{ .Title }}
- </h3>
+ <h3>
+ {{ .Title }}
+ </h3>
- <!-- Marker -->
- <div class="error">{{ T "downtimeOngoing" }}</div>
+ <!-- Marker -->
+ <strong class="error">
+ {{ if eq .Params.severity "down" }}
+ ◼
+ {{ else if eq .Params.severity "disrupted" }}
+ ▲
+ {{ else }}
+ ◆
+ {{ end }}
+ {{ T "downtimeOngoing" }}</strong>
{{ end }}
</a>
diff --git a/layouts/partials/index/incidents-yearly.html b/layouts/partials/index/incidents-yearly.html
index 36f6e44..5cc323a 100644
--- a/layouts/partials/index/incidents-yearly.html
+++ b/layouts/partials/index/incidents-yearly.html
@@ -1,7 +1,9 @@
{{ $incidents := where .Site.RegularPages "Params.section" "issue" }}
{{ range ((where .Site.RegularPages "Params.section" "issue").GroupByDate "2006") }}
- <p class="center" id="{{ .Key }}"><a href="#{{ .Key }}" class="no-underline"><strong>{{ .Key }}</strong></a></p>
+ <p class="center" id="{{ .Key }}"><a href="#{{ .Key }}" class="no-underline"><strong>{{ .Key }}</strong>
+ <span class="faded">({{ len .Pages }})</span>
+ </a></p>
{{ range .Pages }}
{{ .Render "small" }}