my_certificates.tpl 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {% if course_list is not empty %}
  2. <h2 class="page-header">{{ "Courses"|get_lang }}</h2>
  3. <div class="table-responsive">
  4. <table class="table table-hover table-striped">
  5. <thead>
  6. <tr>
  7. <th>{{ "Course"|get_lang }}</th>
  8. <th class="text-right">{{ "Score"|get_lang }}</th>
  9. <th class="text-center">{{ "Date"|get_lang }}</th>
  10. <th class="text-right">&nbsp;</th>
  11. </tr>
  12. </thead>
  13. <tbody>
  14. {% for row in course_list %}
  15. <tr>
  16. <td>{{ row.course }}</td>
  17. <td class="text-right">{{ row.score }}</td>
  18. <td class="text-center">{{ row.date }}</td>
  19. <td class="text-right">
  20. <a href="{{ row.link }}" target="_blank" class="btn btn-default">
  21. <em class="fa fa-external-link"></em> {{ 'Certificate'|get_lang }}
  22. </a>
  23. </td>
  24. </tr>
  25. {% endfor %}
  26. </tbody>
  27. </table>
  28. </div>
  29. {% endif %}
  30. {% if session_list is not empty %}
  31. <h2 class="page-header">{{ "Sessions"|get_lang }}</h2>
  32. <div class="table-responsive">
  33. <table class="table table-hover table-striped">
  34. <thead>
  35. <tr>
  36. <th>{{ "Session"|get_lang }}</th>
  37. <th>{{ "Course"|get_lang }}</th>
  38. <th class="text-right">{{ "Score"|get_lang }}</th>
  39. <th class="text-center">{{ "Date"|get_lang }}</th>
  40. <th class="text-right">&nbsp;</th>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. {% for row in session_list %}
  45. <tr>
  46. <td>{{ row.session }}</td>
  47. <td>{{ row.course }}</td>
  48. <td class="text-right">{{ row.score }}</td>
  49. <td class="text-center">{{ row.date }}</td>
  50. <td class="text-right">
  51. <a href="{{ row.link }}" target="_blank" class="btn btn-default">
  52. <em class="fa fa-external-link"></em> {{ 'Certificate'|get_lang }}
  53. </a>
  54. </td>
  55. </tr>
  56. {% endfor %}
  57. </tbody>
  58. </table>
  59. </div>
  60. {% endif %}