Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Roman Karwacik
website
Commits
a3154798
Unverified
Commit
a3154798
authored
Jul 10, 2019
by
Andreas Valder
Browse files
make preview image clickable even if no videos are released if you are a mod
parent
39330837
Changes
1
Show whitespace changes
Inline
Side-by-side
templates/macros.html
View file @
a3154798
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment