summaryrefslogtreecommitdiff
path: root/stats/templates
diff options
context:
space:
mode:
authoradityacp2020-11-07 18:54:15 +0530
committeradityacp2020-11-07 18:54:15 +0530
commitd09ff51b6c957137e705fee73f1808c6333eed7f (patch)
treea6e01c49a980809b1de0255aef040703f8ccde5c /stats/templates
parenteed832d8a67ab9c2cef874b43f73d14a48cd0c71 (diff)
downloadonline_test-d09ff51b6c957137e705fee73f1808c6333eed7f.tar.gz
online_test-d09ff51b6c957137e705fee73f1808c6333eed7f.tar.bz2
online_test-d09ff51b6c957137e705fee73f1808c6333eed7f.zip
Add additional model to store last access for lesson
Diffstat (limited to 'stats/templates')
-rw-r--r--stats/templates/view_lesson_tracking.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/stats/templates/view_lesson_tracking.html b/stats/templates/view_lesson_tracking.html
index fa891e3..7962410 100644
--- a/stats/templates/view_lesson_tracking.html
+++ b/stats/templates/view_lesson_tracking.html
@@ -47,20 +47,24 @@
<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 Time&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>Total visits&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.last_access_time}}</td>
+ {% with track.get_last_access_time_and_vists as time_and_visits %}
+ <td>{{time_and_visits.0}}</td>
<td>{{track.creation_time}}</td>
<td>{{track.current_time}}</td>
<td>{{track.video_duration}}</td>
<td></td>
+ <td>{{time_and_visits.1}}</td>
+ {% endwith %}
</tr>
{% endfor %}
</table>