From ce8b9f5039ba215b2b2bd255569a131910c080f6 Mon Sep 17 00:00:00 2001 From: Qb Date: Sun, 29 Dec 2024 14:20:08 +0100 Subject: [PATCH] fixup! Implement relive badge on thumbnails --- app/views/frontend/shared/_event_thumb.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/frontend/shared/_event_thumb.haml b/app/views/frontend/shared/_event_thumb.haml index b7de4fce..92b1a0a1 100644 --- a/app/views/frontend/shared/_event_thumb.haml +++ b/app/views/frontend/shared/_event_thumb.haml @@ -1,10 +1,10 @@ %a{href: event_path(slug: event.slug)} .thumbnail-badge-container %img.video-thumbnail{src: h(event.thumb_url), alt: h(event.title), loading: 'lazy'} - - if event.duration + - if event.duration > 0 .duration %span.icon.icon-clock-o = duration_in_minutes(event.duration) - - if not event.recordings.video.present? and event.relive_present? + - if not @event.recordings.video.present? and @event.relive_present? .relive .span.icon.icon-warning-sign{title: 'This is just a stream recording, the final release of this talk is still being worked on.'}