diff --git a/public/main/template/default/my_space/user_details.html.twig b/public/main/template/default/my_space/user_details.html.twig index f43169bfff..4678495038 100644 --- a/public/main/template/default/my_space/user_details.html.twig +++ b/public/main/template/default/my_space/user_details.html.twig @@ -1,186 +1,189 @@ {% import '@ChamiloCore/Macros/box.html.twig' as display %} {% autoescape false %} -{% if title is defined %} -

{{ 'ObjectIcon::COURSE'|mdi_icon(32) }} {{ title }}

-{% endif %} - -{% if details != true %} + {% if title is defined %} +

{{ 'ObjectIcon::COURSE'|mdi_icon(32) }} {{ title }}

+ {% endif %} + + {% if details != true %} -
-
-
-
- Avatar -

{{ user.getFullName }} ({{ user.username }})

-

{{ user.email }}

+
+
+
+
+ Avatar +

{{ user.getFullName }} ({{ user.username }})

+

{{ user.email }}

+
-
-
- {{ display.reporting_user_details(user) }} - {% if user_extra.boss_list %} -

{{ 'Student\'s superior'|trans }}

- {% for boss in user_extra.boss_list %} -

{{ boss }}

- {% endfor %} - {% endif %} -
-
- {{ display.card_widget('First login in platform'|trans, user_extra.first_connection, 'calendar') }} - {{ display.card_widget('Latest login in platform'|trans, user_extra.last_connection, 'calendar') }} +
+ {{ display.reporting_user_details(user) }} + {% if user_extra.boss_list %} +

{{ 'Student\'s superior'|trans }}

+ {% for boss in user_extra.boss_list %} +

{{ boss }}

+ {% endfor %} + {% endif %} +
+
+ {{ display.card_widget('First login in platform'|trans, user_extra.first_connection, 'calendar') }} + {{ display.card_widget('Latest login in platform'|trans, user_extra.last_connection, 'calendar') }} - {% if user_extra.legal is defined %} - {{ display.card_widget(user_extra.legal.label, user_extra.legal.url_send, user_extra.legal.datetime) }} - {% endif %} - {% if user_extra.certificate is defined %} - {{ display.card_widget(user_extra.certificate.label, user_extra.certificate.content) }} - {% endif %} + {% if user_extra.legal is defined %} + {{ display.card_widget(user_extra.legal.label, user_extra.legal.url_send, user_extra.legal.datetime) }} + {% endif %} + {% if user_extra.certificate is defined %} + {{ display.card_widget(user_extra.certificate.label, user_extra.certificate.content) }} + {% endif %} +
-
- -{% else %} -
-
-
-
-
-
- Avatar -

{{ user.getFullName }} ({{ user.username }})

-

{{ user.email }}

+ + {% else %} +
+
+
+
+
+
+ Avatar +

{{ user.getFullName }} ({{ user.username }})

+

{{ user.email }}

+
+
+
+
+ {{ display.reporting_user_details(user) }} +
+ {% if user_extra.boss_list %} +

{{ 'Student\'s superior'|trans }}

+ {% for boss in user_extra.boss_list %} +

{{ boss }}

+ {% endfor %} + {% endif %}
-
-
-
- {{ display.reporting_user_details(user) }} -
- {% if user_extra.boss_list %} -

{{ 'Student\'s superior'|trans }}

- {% for boss in user_extra.boss_list %} -

{{ boss }}

- {% endfor %} - {% endif %}
-
-
-
-
-
-
- {{ user_extra.student_progress }}% -
-
- {{ 'Average progress in courses'|trans }} +
+
+
+
+
+ {{ user_extra.student_progress }}% +
+
+ {{ 'Average progress in courses'|trans }} +
-
-
-
-
- {{ user_extra.student_score }} -
+
- {{ 'Average progress in courses'|trans }} +
+ {{ user_extra.student_score }} +
+
+ {{ 'Average progress in courses'|trans }} +
-
-
-
-
-
-
-
-
- - {{ user_extra.tools.links }} -
-
- {{ 'Links accessed'|trans }} +
+
+
+
+
+
+
+ + {{ user_extra.tools.links }} +
+
+ {{ 'Links accessed'|trans }} +
-
-
-
-
-
-
-
- - {{ user_extra.tools.documents }} -
-
- {{ 'Documents'|trans }} +
+
+
+
+
+
+ + {{ user_extra.tools.documents }} +
+
+ {{ 'Documents'|trans }} +
-
-
-
-
-
+
+
+
+
-
-
- - {{ user_extra.tools.tasks }} -
-
- {{ 'Assignments'|trans }} +
+
+ + {{ user_extra.tools.tasks }} +
+
+ {{ 'Assignments'|trans }} +
-
-
-
-
-
-
-
- - {{ user_extra.tools.messages }} -
-
- {{ 'Number of posts for this user'|trans }} +
+
+
+
+
+
+ + {{ user_extra.tools.messages }} +
+
+ {{ 'Number of posts for this user'|trans }} +
-
-
-
-
-
-
-
- - {{ user_extra.tools.upload_documents }} -
-
- {{ 'Uploaded documents'|trans }} +
+
+
+
+
+
+ + {{ user_extra.tools.upload_documents }} +
+
+ {{ 'Uploaded documents'|trans }} +
-
-
-
-
-
- -
-
+
+
+
+
+ +
+
{% if user_extra.tools.chat_connection != '' %} {{ user_extra.tools.chat_connection }} @@ -188,47 +191,47 @@ {{ 'Not Registered'|trans }} {% endif %} -
-
- {{ 'Latest chat connection'|trans }} +
+
+ {{ 'Latest chat connection'|trans }} +
-
+
-
-
- {{ display.card_widget('First login in platform'|trans, user_extra.first_connection, 'calendar') }} - {{ display.card_widget('Latest login in platform'|trans, user_extra.last_connection, 'calendar') }} - {% if (user_extra.time_spent_course is defined) %} - {{ display.card_widget('Time spent in the course'|trans, user_extra.time_spent_course, 'clock-o') }} - {% endif %} - {% if user_extra.legal is defined %} - {{ display.card_widget('Legal accepted'|trans, user_extra.legal.datetime, 'gavel', user_extra.legal.icon) }} - {% endif %} +
+ {{ display.card_widget('First login in platform'|trans, user_extra.first_connection, 'calendar') }} + {{ display.card_widget('Latest login in platform'|trans, user_extra.last_connection, 'calendar') }} + {% if (user_extra.time_spent_course is defined) %} + {{ display.card_widget('Time spent in the course'|trans, user_extra.time_spent_course, 'clock-o') }} + {% endif %} + {% if user_extra.legal is defined %} + {{ display.card_widget('Legal accepted'|trans, user_extra.legal.datetime, 'gavel', user_extra.legal.icon) }} + {% endif %} +
-
-{% endif %} + {% endif %} - + $("#easypiechart-red").easyPieChart({ + scaleColor: false, + barColor: "#f9243f", + lineWidth: 8, + trackColor: "#f2f2f2" + }) + }) + {% endautoescape %}