Show the first and last access in course in user details page #3193

pull/3261/head
Angel Fernando Quiroz Campos 6 years ago
parent b1059b92bb
commit b6ab7300df
  1. 2
      main/mySpace/myStudents.php
  2. 9
      main/template/default/my_space/user_details.tpl

@ -972,6 +972,8 @@ if (!empty($courseInfo)) {
'chat_connection' => $chat_last_connection,
'documents' => $documents,
'upload_documents' => $uploaded_documents,
'course_first_access' => Tracking::get_first_connection_date_on_the_course($student_id, $courseInfo['real_id'], $sessionId),
'course_last_access' => Tracking::get_last_connection_date_on_the_course($student_id, $courseInfo, $sessionId),
];
} else {
$details = false;

@ -167,6 +167,15 @@
<div class="col-md-4">
{{ display.card_widget('FirstLoginInPlatform'|get_lang, user.first_connection, 'calendar') }}
{{ display.card_widget('LatestLoginInPlatform'|get_lang, user.last_connection, 'calendar') }}
{% if user.tools.course_first_access %}
{{ display.card_widget('FirstLoginInCourse'|get_lang, user.tools.course_first_access, 'calendar-check-o', user.legal.icon) }}
{% endif %}
{% if user.tools.course_last_access %}
{{ display.card_widget('LatestLoginInCourse'|get_lang, user.tools.course_last_access, 'calendar-o', user.legal.icon) }}
{% endif %}
{% if(user.time_spent_course) %}
{{ display.card_widget('TimeSpentInTheCourse'|get_lang, user.time_spent_course, 'clock-o') }}
{% endif %}

Loading…
Cancel
Save