skills_block.tpl 3.0 KB

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