diff options
author | Kevin Hamer <kevin@imarc.com> | 2020-10-11 17:12:45 -0400 |
---|---|---|
committer | Mantas Vilčinskas <hi@mnts.lt> | 2020-10-27 21:38:46 +0200 |
commit | 78b3b15525d756c5b522b07e98049dcb9c024a6a (patch) | |
tree | 57f0eb54db845ca730e54d1e087f63c10f53dd78 /layouts/issues/small.html | |
parent | e8e50381292a6532cdc3c2802f37262b279fe30b (diff) |
Add .relative-time class and JS logic
Diffstat (limited to 'layouts/issues/small.html')
-rw-r--r-- | layouts/issues/small.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/layouts/issues/small.html b/layouts/issues/small.html index 6ed2cce..6112e46 100644 --- a/layouts/issues/small.html +++ b/layouts/issues/small.html @@ -7,8 +7,8 @@ <a href="{{ .Permalink }}" class="issue no-underline"> {{ if .Params.informational }} - - <small class="date float-right"> + + <small class="date float-right relative-time" title="{{ .Date.Format "02 Jan 2006 03:05:00 PM" }}"> {{ if .Site.Params.dateFormat }} {{ .Date.Format .Site.Params.dateFormat }} {{ else }} @@ -21,9 +21,9 @@ </h3> <span class="faded">{{ .Summary | truncate 200 }} </span> - + {{ else if .Params.Resolved }} - <small class="date float-right"> + <small class="date float-right relative-time" title="{{ .Date.Format "02 Jan 2006 03:05:00 PM" }}"> {{ if .Site.Params.dateFormat }} {{ .Date.Format .Site.Params.dateFormat }} {{ else }} @@ -67,7 +67,7 @@ {{ end }} {{ else }} - <small class="date float-right"> + <small class="date float-right relative-time" title="{{ .Date.Format "02 Jan 2006 03:05:00 PM" }}"> {{ if .Site.Params.dateFormat }} {{ .Date.Format .Site.Params.dateFormat }} {{ else }} @@ -82,17 +82,17 @@ <!-- Marker --> {{ if eq .Params.severity "notice" }} <strong class="warning"> - ◆ + ◆ {{ T "downtimeOngoing" }} </strong> {{ else }} <strong class="error"> {{ if eq .Params.severity "down" }} - ■ + ■ {{ else if eq .Params.severity "disrupted" }} - ▲ + ▲ {{ else }} - ◆ + ◆ {{ end }} {{ T "downtimeOngoing" }} </strong> |