From 6e682b6bc1eec8a538573cae971f8ed34654527f Mon Sep 17 00:00:00 2001 From: StevenNMeza Date: Mon, 24 May 2021 21:51:02 +0200 Subject: [PATCH] Add duration label --- views/components/link.pug | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/views/components/link.pug b/views/components/link.pug index e61fdf1..7772cee 100644 --- a/views/components/link.pug +++ b/views/components/link.pug @@ -8,9 +8,13 @@ if link.is_self_link a(href="" + link.permalink + "") img(src="" + link.images.thumb + "", alt="") + if link.duration + span #{secondsToMMSS(link.duration)} else a(href=""+ link.url +"", rel="noopener noreferrer") img(src="" + link.images.thumb + "", alt="") + if link.duration + span #{secondsToMMSS(link.duration)} else a(href="" + link.permalink + "") .no-image no image