skills_block.tpl 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {% import 'default/macro/macro.tpl' as display %}
  2. <script>
  3. $(function() {
  4. jQuery('.scrollbar-inner').scrollbar();
  5. });
  6. </script>
  7. <div class="panel-group" id="skill-block" role="tablist" aria-multiselectable="true">
  8. <div class="panel panel-default">
  9. <div class="panel-heading" role="tab" id="headingOne">
  10. <h4 class="panel-title">
  11. <a role="button" data-toggle="collapse"
  12. data-parent="#skill-block" href="#skillList" aria-expanded="true" aria-controls="skillList">
  13. {{ "Skills" | get_lang }}
  14. </a>
  15. <div class="btn-group pull-right">
  16. <a class="btn btn-xs btn-default dropdown-toggle" data-toggle="dropdown" href="#">
  17. <span class="caret"></span>
  18. </a>
  19. <ul class="dropdown-menu">
  20. {% if show_skills_report_link %}
  21. <li>
  22. <a href="{{ _p.web_main ~ 'social/my_skills_report.php' }}"> {{'SkillsReport'|get_lang }}</a>
  23. </li>
  24. {% endif %}
  25. <li>
  26. <a href="{{ _p.web_main ~ 'social/skills_wheel.php' }}"> {{ 'SkillsWheel'|get_lang }}</a>
  27. </li>
  28. <li>
  29. <a href="{{ _p.web_main ~ 'social/skills_ranking.php' }}"> {{ 'YourSkillRankingX'|get_lang|format(ranking) }}</a>
  30. </li>
  31. </ul>
  32. </div>
  33. </h4>
  34. </div>
  35. <div id="skillList" class="panel-collapse collapse in list-{{ orientation }}" role="tabpanel" aria-labelledby="headingOne">
  36. {% set panel_content %}
  37. {% if skills %}
  38. <div class="list-skills">
  39. {% for item in skills %}
  40. <div class="item">
  41. <div class="image">
  42. <a href="{{ item.skill_url }}" title="{{ item.skill_name }}">
  43. {{ item.skill_badge }}
  44. </a>
  45. </div>
  46. <div class="caption">
  47. <a href="{{ item.skill_url }}" title="{{ item.skill_name }}">
  48. {{ item.skill_name }}
  49. </a>
  50. </div>
  51. </div>
  52. {% endfor %}
  53. </div>
  54. {% else %}
  55. <p>{{ 'WithoutAchievedSkills'|get_lang }}</p>
  56. <p>
  57. <a href="{{ _p.web_main ~ 'social/skills_wheel.php' }}">{{ 'SkillsWheel'|get_lang }}</a>
  58. </p>
  59. {% endif %}
  60. {% endset %}
  61. {{ display.panel('', panel_content) }}
  62. </div>
  63. </div>
  64. </div>