Skip to content
Snippets Groups Projects
Unverified Commit a3154798 authored by Andreas Valder's avatar Andreas Valder
Browse files

make preview image clickable even if no videos are released if you are a mod

parent 39330837
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment