user_information.html.twig 1.5 KB

12345678910111213141516171819202122232425262728
  1. {% import '@ChamiloTheme/Macros/box.html.twig' as display %}
  2. <div class="details">
  3. <div class="row">
  4. <div class="col-md-4">
  5. {{ display.panel('', display.reporting_user_box(user), '') }}
  6. </div>
  7. <div class="col-md-8">
  8. <div class="list-card">
  9. {{ display.card_widget('FirstLoginInPlatform'|get_lang, user.first_connection, 'calendar') }}
  10. {{ display.card_widget('LatestLoginInPlatform'|get_lang, user.last_connection, 'calendar') }}
  11. {% if user.legal %}
  12. {{ display.card_widget('LegalAccepted'|get_lang, user.legal.datetime, 'gavel', user.legal.icon) }}
  13. {% endif %}
  14. </div>
  15. {% if social_tool %}
  16. <div class="list-box-widget">
  17. {{ display.box_widget('Friends'|get_lang, user.social.friends, 'users') }}
  18. {{ display.box_widget('InvitationSent'|get_lang, user.social.invitation_sent, 'paper-plane') }}
  19. {{ display.box_widget('InvitationReceived'|get_lang, user.social.invitation_received, 'smile-o') }}
  20. {{ display.box_widget('WallMessagesPosted'|get_lang, user.social.messages_posted, 'comments') }}
  21. {{ display.box_widget('MessagesSent'|get_lang, user.social.messages_sent, 'envelope') }}
  22. {{ display.box_widget('MessagesReceived'|get_lang, user.social.message_received, 'envelope-open-o') }}
  23. </div>
  24. {% endif %}
  25. </div>
  26. </div>
  27. </div>