You are here

opigno-dashboard-user-statistics-block.html.twig in Opigno dashboard 3.x

Default theme implementation to display the User statistics block.

Available variables:

  • user_name: the user name;
  • uid: the user ID;
  • user_picture: the rendered user profile picture;
  • role: the user role;
  • stats: user trainings stats.

File

templates/opigno-dashboard-user-statistics-block.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display the User statistics block.
  5. *
  6. * Available variables:
  7. * - user_name: the user name;
  8. * - uid: the user ID;
  9. * - user_picture: the rendered user profile picture;
  10. * - role: the user role;
  11. * - stats: user trainings stats.
  12. */
  13. #}
  14. <div class="content-box profile-info">
  15. <div class="edit-link">
  16. <a href="{{ path('entity.user.edit_form', { 'user': uid }) }}">
  17. <i class="fi fi-rr-edit"></i>
  18. </a>
  19. </div>
  20. <div class="profile-info__body">
  21. <div class="profile-info__pic">{{ user_picture }}</div>
  22. <a href="{{ path('entity.user.canonical', { 'user': uid }) }}">
  23. <h2 class="profile-info__name">{{ user_name }}</h2>
  24. </a>
  25. <div class="profile-info__type">{{ role }}</div>
  26. </div>
  27. <div class="profile-info__statistics">
  28. <div class="filter">
  29. <div class="filter__label">{{ 'Trends'|t }}</div>
  30. <select name="filterRange" id="filterRange" class="form-select selectpicker">
  31. <option value="7">{{ 'Last 7 days'|t }}</option>
  32. <option value="30">{{ 'Last 30 days'|t }}</option>
  33. </select>
  34. </div>
  35. {{ stats }}
  36. </div>
  37. </div>