You are here

opigno-learning-path-training-module.html.twig in Opigno Learning path 3.x

Same filename and directory in other branches
  1. 8 templates/opigno-learning-path-training-module.html.twig

Default theme implementation to display learnign path module.

  • status
  • group_id
  • step
  • approved
  • completed
  • badges
  • time_spent

File

templates/opigno-learning-path-training-module.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display learnign path module.
  5. *
  6. * - status
  7. * - group_id
  8. * - step
  9. * - approved
  10. * - completed
  11. * - badges
  12. * - time_spent
  13. */
  14. #}
  15. {% set process = (100 * step.progress)|round() %}
  16. <div class="module">
  17. <div class="module__container">
  18. <h3 class="module__title">
  19. {% if step.mandatory %}
  20. <i class="fi fi-rr-star"></i>
  21. {% endif %}
  22. {{ 'Module - @label'|t({'@label': step.name}) }}
  23. </h3>
  24. <div class="module__content">
  25. <div class="module__status">
  26. <div class="module__status-content">
  27. <div class="label">{{ 'Status' }}</div>
  28. <div class="status">
  29. {% include 'lp-status.html.twig' with {state_class: status.class} %}
  30. {{ status.class | title }}
  31. </div>
  32. </div>
  33. </div>
  34. <div class="module__progress">
  35. <div class="inner">
  36. <div class="label">{{ 'Completion' | t }}</div>
  37. <span class="value">{{ process }}%</span></div>
  38. </div>
  39. <div class="module__completed-on">
  40. <div class="inner">
  41. <div class="label">{{ 'Completed on' | t }}</div>
  42. <span class="value">{{ completed ?: 'not finished' }}</span></div>
  43. </div>
  44. <div class="module__time-spent">
  45. <div class="inner">
  46. <div class="label">{{ 'Time spent' | t }}</div>
  47. <time class="value">{{ time_spent }}</time>
  48. </div>
  49. </div>
  50. <div class="module__badges-earned">
  51. <div class="inner">
  52. <div class="label">{{ 'Badges earned' | t }}</div>
  53. <span class="value">{{ badges }}</span></div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. <div class="activity-container">
  59. <div class="activity-table">
  60. <div class="views-responsive-table-wrapper">
  61. {{ activities.activities }}
  62. </div>
  63. </div>
  64. <div class="activity-info">
  65. {{ activities.info_items }}
  66. <div class="activity-info__link">
  67. {{ activities.link }}
  68. </div>
  69. </div>
  70. </div>