my_progress.html.twig 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <div class="my-progress row">
  2. <div class="col-md-3">
  3. <div class="panel panel-default">
  4. <div class="panel-body">
  5. <div class="profile-user">
  6. {{ user_avatar }}
  7. <div class="username">{{ user|format_user_full_name }}</div>
  8. <div class="star-progress">
  9. <span class="float-right">{{ 'XPoints'|get_lang|format(gamification_points) }}</span>
  10. {% if gamification_stars > 0 %}
  11. {% for i in 1..gamification_stars %}
  12. <em class="fa fa-star"></em>
  13. {% endfor %}
  14. {% endif %}
  15. {% if 4 - gamification_stars > 0 %}
  16. {% for i in 1..(4 - gamification_stars) %}
  17. <em class="fa fa-star in"></em>
  18. {% endfor %}
  19. {% endif %}
  20. </div>
  21. <div class="progress">
  22. <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="{{ gamification_progress }}" aria-valuemin="0" aria-valuemax="100" style="width: {{ gamification_progress }}%">
  23. <span class="sr-only">{{ gamification_progress }} Complete (success)</span>
  24. </div>
  25. </div>
  26. <div class="progress-percentage text-right">{{ 'XPercent'|get_lang|format(gamification_progress) }}</div>
  27. </div>
  28. </div>
  29. </div>
  30. <div class="panel panel-default">
  31. <div class="panel-heading">
  32. {{ 'ShowProgress'|get_lang }}
  33. </div>
  34. <div class="panel-body">
  35. <ul class="list-course">
  36. {% for session in sessions %}
  37. <li><a href="{{ _p.self ~ '?' ~ {"session_id": session.getId}|url_encode() }}" class="list-course-item {{ current_session and session.getId == current_session.getId ? 'active' }}">
  38. <em class="fa fa-chevron-circle-right"></em> {{ session.getName }}
  39. </a>
  40. </li>
  41. {% endfor %}
  42. </ul>
  43. </div>
  44. </div>
  45. </div>
  46. <div class="col-md-9">
  47. {% if current_session %}
  48. <div class="panel panel-default">
  49. <div class="panel-heading"><em class="fa fa-book"></em> {{ current_session.getName() }}</div>
  50. <div class="panel-body">
  51. {% for course_id, course in session_data %}
  52. <h3><img src="{{ 'blackboard_blue.png'|icon(32) }}"/> {{ course.title }}</h3>
  53. <div class="panel-group" id="course-accordion" role="tablist" aria-multiselectable="true">
  54. {% for stats_url in course.stats %}
  55. {% set panel_id = course_id ~ '-' ~ loop.index %}
  56. <div class="panel panel-default">
  57. <div class="panel-heading" role="tab" id="heading-{{ panel_id }}">
  58. <h4 class="panel-title">
  59. <a role="button" data-toggle="collapse" data-parent="#course-accordion" href="#collapse-{{ panel_id }}" aria-expanded="true" aria-controls="collapse-{{ panel_id }}">
  60. {{ stats_url.0 }}
  61. </a>
  62. </h4>
  63. </div>
  64. <div id="collapse-{{ panel_id }}" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading-{{ panel_id }}">
  65. <div class="panel-body">
  66. <div class="embed-container">
  67. <iframe src="{{ _p.web_main ~ stats_url.1 }}"></iframe>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. {% endfor %}
  73. </div>
  74. {% endfor %}
  75. </div>
  76. </div>
  77. {% endif %}
  78. </div>
  79. </div>