From a1639447e1f590b8976505355c8bce3d4d5e9bfd Mon Sep 17 00:00:00 2001 From: Jacek Ka Date: Thu, 20 May 2021 00:08:49 +0200 Subject: [PATCH] when video is ended user can choose - go to next lecture or stay on current. if no action user will be redirect to next lecture after 5 secs. --- courses/templates/courses/view_lecture.html | 96 +++++++++++++-------- 1 file changed, 59 insertions(+), 37 deletions(-) diff --git a/courses/templates/courses/view_lecture.html b/courses/templates/courses/view_lecture.html index 273c6cd..b1e48c0 100644 --- a/courses/templates/courses/view_lecture.html +++ b/courses/templates/courses/view_lecture.html @@ -9,18 +9,37 @@ {% if user.active_membership or lecture.preview %}
-
+
+ +
+

{{ lecture.title }}

{{ lecture.section.title }} - {{ lecture.section.course.title }}
{% if lecture.vimeo_video_id %} {% endif %} - +
{% if lecture.text %}
@@ -28,8 +47,12 @@
{{ lecture.section.title }} - {{ lecture.section.course.ti
{% endif %} + + {% include 'courses/next_prev.html' %}
+ +
{% else %}
@@ -97,7 +120,6 @@
Gotta have a membership to watch this one fam. Sign up an {% endfor %} {% endfor %}
-
@@ -105,9 +127,7 @@
Gotta have a membership to watch this one fam. Sign up an
- -
@@ -116,46 +136,48 @@
Gotta have a membership to watch this one fam. Sign up an {% block javascript %} + + {% endblock %}