From 5f02880d022053ed07ed218fd52d9e436f6455ee Mon Sep 17 00:00:00 2001 From: adityacp Date: Mon, 16 Nov 2020 16:54:07 +0530 Subject: Change stats and yaksh - Show total visits per student in lesson statistics - Remove settimeout ajax calls for tracking video positions - Show initial views per lesson in the course modules section --- stats/templates/view_lesson_tracking.html | 39 ++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 13 deletions(-) (limited to 'stats/templates') diff --git a/stats/templates/view_lesson_tracking.html b/stats/templates/view_lesson_tracking.html index ef5c9ae..d8d35c2 100644 --- a/stats/templates/view_lesson_tracking.html +++ b/stats/templates/view_lesson_tracking.html @@ -5,26 +5,29 @@ {% endblock %} {% block content %} -
+
{% with objects.object_list as trackings %}

Statistics for {% with trackings|first as entry %} {{entry.lesson}} {% endwith %}

- +  Back

@@ -43,19 +46,29 @@ Percentage Watched  Watched Once Completely  Total Time Spent  + Total Visits  {% for track in trackings %} - {{ forloop.counter0|add:objects.start_index }} + {{ forloop.counter0 }} {{track.user.get_full_name}} {{track.get_last_access_time}} {{track.creation_time}} {{track.get_current_time}} {{track.get_video_duration}} {{track.get_percentage_complete}} - {{track.get_watched}} + + {% with track.get_watched as watched %} + {% if watched %} + {{watched}} + {% else %} + {{watched}} + {% endif %} + {% endwith %} + {{track.time_spent}} + {{track.get_no_of_vists}} {% endfor %} -- cgit