From fe5b3c41aa898fa7491a7ec9bce28c5e1c5b542d Mon Sep 17 00:00:00 2001
From: adityacp
Date: Fri, 6 Nov 2020 18:21:48 +0530
Subject: Statistics app for video tracking
---
stats/templates/view_lesson_tracking.html | 69 +++++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
create mode 100644 stats/templates/view_lesson_tracking.html
(limited to 'stats/templates')
diff --git a/stats/templates/view_lesson_tracking.html b/stats/templates/view_lesson_tracking.html
new file mode 100644
index 0000000..fd87d70
--- /dev/null
+++ b/stats/templates/view_lesson_tracking.html
@@ -0,0 +1,69 @@
+{% extends "manage.html" %}
+
+{% block title %} Lesson Views {% endblock %}
+{% block script %}
+
+{% endblock %}
+{% block content %}
+
+ {% with objects.object_list as trackings %}
+
+ Statistics for {% with trackings|first as entry %} {{entry.lesson}} {% endwith %}
+
+
+ Back
+
+
+ {% include "yaksh/paginator.html" %}
+
+
{{total}} student(s) viewed this lesson
+
+ {% endwith %}
+
+ {% include "yaksh/paginator.html" %}
+
+{% endblock %}
\ No newline at end of file
--
cgit
From 7419b67b1928f30824a332d36afcdfddebaf2479 Mon Sep 17 00:00:00 2001
From: adityacp
Date: Sat, 7 Nov 2020 12:09:22 +0530
Subject: Add table sorter
---
stats/templates/view_lesson_tracking.html | 34 ++++++++++++++++---------------
1 file changed, 18 insertions(+), 16 deletions(-)
(limited to 'stats/templates')
diff --git a/stats/templates/view_lesson_tracking.html b/stats/templates/view_lesson_tracking.html
index fd87d70..fa891e3 100644
--- a/stats/templates/view_lesson_tracking.html
+++ b/stats/templates/view_lesson_tracking.html
@@ -1,7 +1,9 @@
{% extends "manage.html" %}
-
+{% load static %}
{% block title %} Lesson Views {% endblock %}
{% block script %}
+
{% endblock %}
@@ -49,22 +40,22 @@
Started on |
Current Duration |
Video Duration |
- Percentage watched |
- Total visits |
+ Percentage Watched |
+ Watched Once Completely |
+ Total Time Spent |
{% for track in trackings %}
{{ forloop.counter0|add:objects.start_index }} |
{{track.user.get_full_name}} |
- {% with track.get_last_access_time_and_vists as time_and_visits %}
- {{time_and_visits.0}} |
+ {{track.get_last_access_time}} |
{{track.creation_time}} |
- {{track.current_time}} |
- {{track.video_duration}} |
- |
- {{time_and_visits.1}} |
- {% endwith %}
+ {{track.get_current_time}} |
+ {{track.get_video_duration}} |
+ {{track.get_percentage_complete}} |
+ {{track.get_watched}} |
+ {{track.time_spent}} |
{% endfor %}
@@ -72,4 +63,4 @@
{% include "yaksh/paginator.html" %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
--
cgit