spearhead-statuskit/site/layouts/partials/incident.html
David Calavera 3d127900bf
Rename state to severity.
This is a more accurated representation of what it means.

Signed-off-by: David Calavera <david.calavera@gmail.com>
2016-11-23 09:53:38 -08:00

15 lines
463 B
HTML

<div class="incident card">
<div class="incident-header">
<p class="incident-title">{{ .Title }}</p>
<p class="incident-date">{{ dateFormat "02 Jan 2006 15:04 MST" .Date }}</p>
</div>
<div class="incident-description">
{{- .Content -}}
</div>
{{- $alert := index .Site.Data.severity.alerts .Params.severity -}}
<p class="incident-status color-{{ $alert }}">
{{ index .Site.Data.severity.descriptions .Params.severity }}
</p>
</div>