diff options
author | adityacp | 2020-11-07 18:54:15 +0530 |
---|---|---|
committer | adityacp | 2020-11-07 18:54:15 +0530 |
commit | d09ff51b6c957137e705fee73f1808c6333eed7f (patch) | |
tree | a6e01c49a980809b1de0255aef040703f8ccde5c /stats/templates | |
parent | eed832d8a67ab9c2cef874b43f73d14a48cd0c71 (diff) | |
download | online_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.html | 8 |
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 <i class="fa fa-sort"></i></th> <th>Last access on <i class="fa fa-sort"></i></th> <th>Started on <i class="fa fa-sort"></i></th> - <th>Current Time <i class="fa fa-sort"></i></th> + <th>Current Duration <i class="fa fa-sort"></i></th> <th>Video Duration <i class="fa fa-sort"></i></th> <th>Percentage watched <i class="fa fa-sort"></i></th> + <th>Total visits <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> |