skills_block.html.twig 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {% import '@ChamiloTheme/Macros/box.html.twig' as macro %}
  2. <script>
  3. $(function () {
  4. jQuery('.scrollbar-inner').scrollbar();
  5. });
  6. </script>
  7. {% autoescape false %}
  8. {% set data %}
  9. {% if skills %}
  10. {{ skills }}
  11. {% else %}
  12. <p>{{ 'WithoutAchievedSkills'|get_lang }}</p>
  13. <p>
  14. <a href="{{ _p.web_main ~ 'social/skills_wheel.php' }}">{{ 'SkillsWheel'|get_lang }}</a>
  15. </p>
  16. {% endif %}
  17. {% endset %}
  18. {{ macro.panel("Skills" | get_lang, data) }}
  19. {#<div class="panel-group" id="skill-block" role="tablist" aria-multiselectable="true">#}
  20. {#<div class="panel panel-default">#}
  21. {#<div class="panel-heading" role="tab" id="headingOne">#}
  22. {#<h4 class="panel-title">#}
  23. {#<a role="button" data-toggle="collapse" data-parent="#skill-block" href="#skillList" aria-expanded="true" aria-controls="skillList">#}
  24. {#{{ "Skills" | get_lang }}#}
  25. {#</a>#}
  26. {#<div class="btn-group pull-right">#}
  27. {#<a class="btn btn-xs btn-default dropdown-toggle" data-toggle="dropdown" href="#">#}
  28. {#<span class="caret"></span>#}
  29. {#</a>#}
  30. {#<ul class="dropdown-menu">#}
  31. {#{% if show_skills_report_link %}#}
  32. {#<li>#}
  33. {#<a href="{{ _p.web_main ~ 'social/my_skills_report.php' }}"> {{'SkillsReport'|get_lang }}</a>#}
  34. {#</li>#}
  35. {#{% endif %}#}
  36. {#<li>#}
  37. {#<a href="{{ _p.web_main ~ 'social/skills_wheel.php' }}"> {{ 'SkillsWheel'|get_lang }}</a>#}
  38. {#</li>#}
  39. {#<li>#}
  40. {#<a href="{{ _p.web_main ~ 'social/skills_ranking.php' }}"> {{ 'YourSkillRankingX'|get_lang|format(ranking) }}</a>#}
  41. {#</li>#}
  42. {#</ul>#}
  43. {#</div>#}
  44. {#</h4>#}
  45. {#</div>#}
  46. {#</div>#}
  47. {#</div>#}
  48. {% endautoescape %}