From e003ba462573c9b9445c168bc628f41a47e38721 Mon Sep 17 00:00:00 2001 From: Mantas Vilčinskas Date: Mon, 23 Aug 2021 17:08:34 +0300 Subject: Fix #199 --- layouts/issues/small.html | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) (limited to 'layouts/issues') diff --git a/layouts/issues/small.html b/layouts/issues/small.html index 115d5d0..51f5e67 100644 --- a/layouts/issues/small.html +++ b/layouts/issues/small.html @@ -68,11 +68,15 @@ {{ else }} - - {{ if .Site.Params.dateFormat }} - {{ .Date.Format .Site.Params.dateFormat }} + + + {{ if .Date.Before now }} + {{ if .Site.Params.dateFormat }} + {{ .Date.Format .Site.Params.dateFormat }} + {{ else }} + {{ .Date.Format "January 2, 2006 at 3:04 PM" }} + {{ end }} {{ else }} - {{ .Date.Format "January 2, 2006 at 3:04 PM" }} {{ end }} @@ -80,13 +84,24 @@ {{ .Title }} + + {{ if eq .Params.severity "notice" }} ◆ - {{ T "downtimeOngoing" }} + {{ if .Date.Before now }} + {{ T "downtimeOngoing" }} + {{ else }} + {{ if .Site.Params.dateFormat }} + {{ .Date.Format .Site.Params.dateFormat }} + {{ else }} + {{ .Date.Format "January 2, 2006 at 3:04 PM" }} + {{ end }} + {{ end }} {{ else }} + {{ if eq .Params.severity "down" }} ■ -- cgit v1.2.3-70-g09d2