summaryrefslogtreecommitdiff
path: root/stats/templates/view_lesson_tracking.html
diff options
context:
space:
mode:
authorPalaparthy Adityachandra2020-11-17 15:49:01 +0530
committerGitHub2020-11-17 15:49:01 +0530
commit5f92f4db6e108b338ea6509052f0990f1f94c6cb (patch)
tree13e55275326aa2d533d36ae804d36ba833f0bb41 /stats/templates/view_lesson_tracking.html
parentd1de6058253c5df8984ac36d9de33396a368edce (diff)
parent6aef69d6e5a3eb3dde2d39e0bb9e1dd5b05a8b3c (diff)
downloadonline_test-5f92f4db6e108b338ea6509052f0990f1f94c6cb.tar.gz
online_test-5f92f4db6e108b338ea6509052f0990f1f94c6cb.tar.bz2
online_test-5f92f4db6e108b338ea6509052f0990f1f94c6cb.zip
Merge branch 'master' into tinymce
Diffstat (limited to 'stats/templates/view_lesson_tracking.html')
-rw-r--r--stats/templates/view_lesson_tracking.html66
1 files changed, 66 insertions, 0 deletions
diff --git a/stats/templates/view_lesson_tracking.html b/stats/templates/view_lesson_tracking.html
new file mode 100644
index 0000000..ef5c9ae
--- /dev/null
+++ b/stats/templates/view_lesson_tracking.html
@@ -0,0 +1,66 @@
+{% extends "manage.html" %}
+{% load static %}
+{% block title %} Lesson Views {% endblock %}
+{% block script %}
+<script type="text/javascript" src="{% static 'yaksh/js/jquery.tablesorter.min.js' %}">
+</script>
+<script type="text/javascript">
+ function get_time_in_seconds(time) {
+ var time = time.split(":");
+ var hh = parseInt(time[0]);
+ var mm = parseInt(time[1]);
+ var ss = parseInt(time[2]);
+ return hh * 3600 + mm * 60 + ss;
+ }
+
+ $(document).ready(function() {
+ $("#stats-table").tablesorter({});
+ });
+</script>
+{% endblock %}
+{% block content %}
+<div class="container">
+ {% with objects.object_list as trackings %}
+ <center>
+ <h3>Statistics for {% with trackings|first as entry %} {{entry.lesson}} {% endwith %}</h3>
+ </center>
+ <a class="btn btn-primary" href="{% url 'yaksh:lesson_statistics' course_id lesson_id %}">
+ <i class="fa fa-arrow-left"></i>&nbsp;Back
+ </a>
+ <br><br>
+ {% include "yaksh/paginator.html" %}
+ <br>
+ <h4><strong>{{total}} student(s) viewed this lesson</strong></h4>
+ <table class="table table-responsive" id="stats-table">
+ <thead>
+ <tr>
+ <th>Sr No.</th>
+ <th>Student Name&nbsp;<i class="fa fa-sort"></i></th>
+ <th>Last access on&nbsp;<i class="fa fa-sort"></i></th>
+ <th>Started on&nbsp;<i class="fa fa-sort"></i></th>
+ <th>Current Duration&nbsp;<i class="fa fa-sort"></i></th>
+ <th>Video Duration&nbsp;<i class="fa fa-sort"></i></th>
+ <th>Percentage Watched&nbsp;<i class="fa fa-sort"></i></th>
+ <th>Watched Once Completely&nbsp;<i class="fa fa-sort"></i></th>
+ <th>Total Time Spent&nbsp;<i class="fa fa-sort"></i></th>
+ </tr>
+ </thead>
+ {% for track in trackings %}
+ <tr>
+ <td>{{ forloop.counter0|add:objects.start_index }}</td>
+ <td>{{track.user.get_full_name}}</td>
+ <td>{{track.get_last_access_time}}</td>
+ <td>{{track.creation_time}}</td>
+ <td>{{track.get_current_time}}</td>
+ <td>{{track.get_video_duration}}</td>
+ <td>{{track.get_percentage_complete}}</td>
+ <td>{{track.get_watched}}</td>
+ <td>{{track.time_spent}}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% endwith %}
+ <br>
+ {% include "yaksh/paginator.html" %}
+</div>
+{% endblock %}