left.html.twig 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {% extends '/base.html.twig' %}
  2. {% block stylesheets %}
  3. {{ parent() }}
  4. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/left/left.css') }}" media="screen and (min-width: 1300px)">
  5. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/left/left_mid.css') }}" media="screen and (max-width: 1300px)">
  6. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/left/left_small.css') }}" media="screen and (max-width: 750px)">
  7. {% endblock %}
  8. {% block left %}
  9. {% if app.user %}
  10. <div id='left-panel'>
  11. <input type="checkbox" id="toggle" class="larger" autofocus>
  12. <div class="icon-menu">
  13. <label for="toggle" id='menu' tabindex="0"></label>
  14. </div>
  15. <div class='navbar'>
  16. <div class="left-nav">
  17. <div class='profile'>
  18. <a href="{{ path('settings_avatar') }}">
  19. <img src='{{ user_avatar }}' alt="Your avatar." class="icon icon-avatar">
  20. </a>
  21. <a href="{{ path('settings_personal_info') }}">
  22. <div class="info">
  23. <b id="nick">{{ user_nickname }}</b>
  24. <div class="tags">
  25. {% if user_tags %}
  26. {% for tag in user_tags %}
  27. <a href='#'><i> #{{ tag }} </i></a>
  28. {% endfor %}
  29. {% else %}
  30. <i> {{ '(No tags)' | trans }} </i>
  31. {% endif %}
  32. </div>
  33. <div class="stats">
  34. <span> <b> {{ user_followers }} </b> {{'Followers' | trans}} </span>
  35. <span> <b> {{ user_followed }} </b> {{'Followed' | trans}} </span>
  36. </div>
  37. </div>
  38. </a>
  39. </div>
  40. <a href='#'>Messages</a>
  41. <a href="{{ path("replies", {'nickname' : user_nickname}) }}" class='hover-effect {{ active("replies") }}'>Replies</a>
  42. <a href="{{ path("favourites", {'nickname' : user_nickname}) }}" class='hover-effect {{ active("favourites") }}'>Favourites</a>
  43. <a href='#'>Reverse Favs</a>
  44. <a href="{{ path('settings_personal_info') }}" class='hover-effect {{ active('settings_') }}'>Settings</a>
  45. <a href='#'>Logout</a>
  46. </div>
  47. <div class="footer">
  48. <a href="{{ path('doc_faq') }}" class='hover-effect {{ active('doc_faq') }}'>FAQ</a>
  49. <a href="{{ path('doc_tos') }}" class='hover-effect {{ active('doc_tos') }}'>TOS</a>
  50. <a href="{{ path('doc_privacy') }}" class='hover-effect {{ active('doc_privacy') }}'>Privacy</a>
  51. <a href="{{ path('doc_source') }}" class='hover-effect {{ active('doc_source') }}'>Source</a>
  52. <a href="{{ path('doc_version') }}" class='hover-effect {{ active('doc_version') }}'>Version</a>
  53. </div>
  54. </div>
  55. </div>
  56. {% else %}
  57. <div id='left-panel'>
  58. <input type="checkbox" id="toggle">
  59. <div class="icon-menu">
  60. <label for="toggle" id='menu'></label>
  61. </div>
  62. <div class='navbar'>
  63. <div class="left-nav">
  64. <a href="{{ path('login') }}" class='hover-effect {{ active('login') }}'>Login</a>
  65. <a href="{{ path('register') }}">Register</a>
  66. </div>
  67. <div class="footer">
  68. <a href="{{ path('doc_faq') }}" class='hover-effect {{ active('doc_faq') }}'>FAQ</a>
  69. <a href="{{ path('doc_tos') }}" class='hover-effect {{ active('doc_tos') }}'>TOS</a>
  70. <a href="{{ path('doc_privacy') }}" class='hover-effect {{ active('doc_privacy') }}'>Privacy</a>
  71. <a href="{{ path('doc_source') }}" class='hover-effect {{ active('doc_source') }}'>Source</a>
  72. <a href="{{ path('doc_version') }}" class='hover-effect {{ active('doc_version') }}'>Version</a>
  73. </div>
  74. </div>
  75. </div>
  76. {% endif %}
  77. {% endblock %}