From deda6e5aaf5dc358489dda761e315baab3e34eab Mon Sep 17 00:00:00 2001
From: Andreas <andreasv@fsmpi.rwth-aachen.de>
Date: Thu, 20 Apr 2017 23:52:14 +0200
Subject: [PATCH] fixed thumbnails for lectures without titlefile set

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

diff --git a/templates/macros.html b/templates/macros.html
index f79b108..88132ae 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -168,7 +168,7 @@ $('#embedcodebtn').popover(
 {% macro lecture_list_item(lecture,videos,global_permissions) %}
 <li class="list-group-item" id="lecture-{{lecture.id}}">
 	<div class="row">
-		<div style="background-image: url('{% if not lecture.titlefile %}{{url_for('static',filename='no-thumbnail.png')}}{% else %}{{ config.VIDEOPREFIX }}/thumbnail/l_{{lecture.id}}.jpg'){% endif %}" class="col-sm-2 col-xs-12 thumbnailimg">
+		<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 %}
 			<a href="{{url_for('lecture', course=lecture.course.handle, id=lecture.id)}}">
 				<span class="glyphicon glyphicon-play-circle playpreviewbtn"></span>
-- 
GitLab