From a3154798b03948167c53764dbc8958f61a56b6be Mon Sep 17 00:00:00 2001
From: Andreas <andreasv@fsmpi.rwth-aachen.de>
Date: Wed, 10 Jul 2019 15:11:16 +0200
Subject: [PATCH] make preview image clickable even if no videos are released
 if you are a mod

---
 templates/macros.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/macros.html b/templates/macros.html
index 961f26a..c31fe30 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -212,7 +212,7 @@ $('#embedcodebtn').popover(
 	<div class="row">
 		{% if ismod() or (videos|length > 0) %}
 			<div style="background-image: url('{{ config.VIDEOPREFIX }}/thumbnail/l_{{lecture.id}}.jpg')" class="col-sm-2 col-xs-12 thumbnailimg">
-			{% if not videos|length is equalto 0 %}
+			{% if (not videos|length is equalto 0) or ismod() %}
 				<a href="{{url_for('lecture', course=lecture.course.handle, id=lecture.id)}}">
 					<span class="glyphicon glyphicon-play-circle playpreviewbtn"></span>
 				</a>
-- 
GitLab