diff options
author | Mantas <mistermantas@users.noreply.github.com> | 2017-11-25 12:05:33 +0200 |
---|---|---|
committer | Mantas <mistermantas@users.noreply.github.com> | 2017-11-25 12:05:33 +0200 |
commit | 3208df6352c0e05208bce95f8d9e9f16769a57ed (patch) | |
tree | 6d784f09fa6dc7d85438ca1086e32ba363d90483 /layouts/issues | |
parent | 4bc818712d9b0133dd22326052a99ef1f36f4aa0 (diff) |
cState goes stable 1.0; fix #4 & fix #5
Diffstat (limited to 'layouts/issues')
-rw-r--r-- | layouts/issues/issue.html | 29 | ||||
-rw-r--r-- | layouts/issues/single.html | 17 |
2 files changed, 46 insertions, 0 deletions
diff --git a/layouts/issues/issue.html b/layouts/issues/issue.html new file mode 100644 index 0000000..9b63b78 --- /dev/null +++ b/layouts/issues/issue.html @@ -0,0 +1,29 @@ +{{ $incidents := where .Site.RegularPages "Params.section" "issue" }} +{{ $active := where $incidents "Params.resolved" "=" false }} + +{{ $isNotice := where $active "Params.severity" "=" "notice" }} +{{ $isDisrupted := where $active "Params.severity" "=" "disrupted" }} +{{ $isDown := where $active "Params.severity" "=" "down" }} + +<div class="article"> + <span class="marker"> + {{ .Params.severity }} + </span> + + <small class="date"> + {{ .Date.Format "January 02, 2006 at 3:04 PM" }} + </small> + + {{ if .Params.Resolved }} + <span class="ok">✓</span> + {{ end }} + + + <h3> + <a href="{{ .Permalink }}">{{ .Title }}</a> + </h3> + + <hr> + + {{ .Content }} +</div> diff --git a/layouts/issues/single.html b/layouts/issues/single.html new file mode 100644 index 0000000..52c4145 --- /dev/null +++ b/layouts/issues/single.html @@ -0,0 +1,17 @@ +{{ partial "meta" . }} + +{{ $incidents := where .Site.RegularPages "Params.section" "issue" }} +{{ $active := where $incidents "Params.resolved" "=" false }} + +{{ $isNotice := where $active "Params.severity" "=" "notice" }} +{{ $isDisrupted := where $active "Params.severity" "=" "disrupted" }} +{{ $isDown := where $active "Params.severity" "=" "down" }} + + <body class="status-{{ if $isDown }}down{{ else }}{{ if $isDisrupted}}disrupted{{ else }}{{ if $isNotice }}notice{{ else }}ok{{ end }}{{ end }}{{ end }}"> + {{ partial "header-mini" . }} + + <div class="contain"> + {{ .Render "issue" }} + </div> + +{{ partial "footer" . }} |