left.html.twig 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {% if app.user %}
  2. <div id='left-panel'>
  3. <input type="checkbox" id="toggle" class="larger" autofocus>
  4. <div class="icon-menu">
  5. <label for="toggle" id='menu' tabindex="0"></label>
  6. </div>
  7. <div class='navbar'>
  8. <div class="left-nav">
  9. <div class='profile'>
  10. {% for extra in profile_extras %}
  11. {% include '/'~ extra.name ~ '/view.html.twig' with {'vars': extra.vars} only %}
  12. {% endfor %}
  13. <a href="{{ path('settings_avatar') }}">
  14. <img src='{{ user_avatar }}' alt="Your avatar." class="icon icon-avatar">
  15. </a>
  16. <a href="{{ path('settings_personal_info') }}">
  17. <div class="info">
  18. <b id="nick">{{ user_nickname }}</b>
  19. <div class="tags">
  20. {% if user_tags %}
  21. {% for tag in user_tags %}
  22. <a href='#'><i> #{{ tag }} </i></a>
  23. {% endfor %}
  24. {% else %}
  25. <i> {{ '(No tags)' | trans }} </i>
  26. {% endif %}
  27. </div>
  28. <div class="stats">
  29. <span> <b> {{ user_followers }} </b> {{ 'Followers' | trans }} </span>
  30. <span> <b> {{ user_followed }} </b> {{ 'Followed' | trans }} </span>
  31. </div>
  32. </div>
  33. </a>
  34. </div>
  35. <a href='#'>Messages</a>
  36. <a href="{{ path("replies", {'nickname' : user_nickname}) }}"
  37. class='hover-effect {{ active("replies") }}'>Replies</a>
  38. {% for link in handle_event('InsertLeftPanelLink', user_nickname) %}
  39. {{ link | raw }}
  40. {% endfor %}
  41. <a href="{{ path('settings_personal_info') }}"
  42. class='hover-effect {{ active('settings_') }}'>Settings</a>
  43. <a href='{{ path('logout') }}'>Logout</a>
  44. </div>
  45. <div class="footer">
  46. <a href="{{ path('doc_faq') }}" class='hover-effect {{ active('doc_faq') }}'>FAQ</a>
  47. <a href="{{ path('doc_tos') }}" class='hover-effect {{ active('doc_tos') }}'>TOS</a>
  48. <a href="{{ path('doc_privacy') }}" class='hover-effect {{ active('doc_privacy') }}'>Privacy</a>
  49. <a href="{{ path('doc_source') }}" class='hover-effect {{ active('doc_source') }}'>Source</a>
  50. <a href="{{ path('doc_version') }}" class='hover-effect {{ active('doc_version') }}'>Version</a>
  51. </div>
  52. </div>
  53. </div>
  54. {% else %}
  55. <div id='left-panel'>
  56. <input type="checkbox" id="toggle">
  57. <div class="icon-menu">
  58. <label for="toggle" id='menu'></label>
  59. </div>
  60. <div class='navbar'>
  61. <div class="left-nav">
  62. <a href="{{ path('login') }}" class='hover-effect {{ active('login') }}'>Login</a>
  63. <a href="{{ path('register') }}">Register</a>
  64. </div>
  65. <div class="footer">
  66. <a href="{{ path('doc_faq') }}" class='hover-effect {{ active('doc_faq') }}'>FAQ</a>
  67. <a href="{{ path('doc_tos') }}" class='hover-effect {{ active('doc_tos') }}'>TOS</a>
  68. <a href="{{ path('doc_privacy') }}" class='hover-effect {{ active('doc_privacy') }}'>Privacy</a>
  69. <a href="{{ path('doc_source') }}" class='hover-effect {{ active('doc_source') }}'>Source</a>
  70. <a href="{{ path('doc_version') }}" class='hover-effect {{ active('doc_version') }}'>Version</a>
  71. </div>
  72. </div>
  73. </div>
  74. {% endif %}