skills_block.tpl 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <div class="panel-group" id="skill-block" role="tablist" aria-multiselectable="true">
  2. <div class="panel panel-default">
  3. <div class="panel-heading" role="tab" id="headingOne">
  4. <h4 class="panel-title">
  5. <a role="button" data-toggle="collapse" data-parent="#skill-block" href="#skillList" aria-expanded="true" aria-controls="skillList">
  6. {{ "Skills" | get_lang }}
  7. </a>
  8. <div class="btn-group pull-right">
  9. <a class="btn btn-xs btn-default dropdown-toggle" data-toggle="dropdown" href="#">
  10. <span class="caret"></span>
  11. </a>
  12. <ul class="dropdown-menu">
  13. {% if show_skills_report_link %}
  14. <li>
  15. <a href="{{ _p.web_main ~ 'social/my_skills_report.php' }}"> {{'SkillsReport'|get_lang }}</a>
  16. </li>
  17. {% endif %}
  18. <li>
  19. <a href="{{ _p.web_main ~ 'social/skills_wheel.php' }}"> {{ 'SkillsWheel'|get_lang }}</a>
  20. </li>
  21. <li>
  22. <a href="{{ _p.web_main ~ 'social/skills_ranking.php' }}"> {{ 'YourSkillRankingX'|get_lang|format(ranking) }}</a>
  23. </li>
  24. </ul>
  25. </div>
  26. </h4>
  27. </div>
  28. <div id="skillList" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
  29. <div class="panel-body">
  30. {% if skills %}
  31. <ul class="list-badges">
  32. {% for skill in skills %}
  33. <li>
  34. <img title="{{ skill.name }}" src="{{ skill.icon ? skill.web_icon_thumb_path : 'badges-default.png'|icon(64) }}" width="64" height="64" alt="{{ skill.name }}">
  35. <div class="badges-name">{{ skill.name }}</div>
  36. </li>
  37. {% endfor %}
  38. </ul>
  39. {% else %}
  40. <p>{{ 'WithoutAchievedSkills'|get_lang }}</p>
  41. <p>
  42. <a href="{{ _p.web_main ~ 'social/skills_wheel.php' }}">{{ 'SkillsWheel'|get_lang }}</a>
  43. </p>
  44. {% endif %}
  45. </div>
  46. </div>
  47. </div>
  48. </div>