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.'}