diff --git a/templates/macros.html b/templates/macros.html index e9a91ea83a17faec91c2cb521db7bb71e9e6b45b..eb5e7c1b947d5c633d72d76a0dd14f8fe81d80d9 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('{{ config.VIDEOPREFIX }}/thumbnail/l_{{lecture.id}}.jpg')" 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" onerror="this.src='{{url_for('static',filename='no-thumbnail.png')}}'; this.onerror=''; "> {% 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>