view.html.twig 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {% block feeds %}
  2. <section class="frame-section" title="{{ 'Feed navigation.' | trans }}">
  3. <details class="section-details-title" open="open"
  4. title="{{ 'Expand if you want to access more options.' | trans }}">
  5. <summary class="details-summary-title">
  6. <h2>{{ 'Feeds' | trans }}</h2>
  7. {% if app.user %}
  8. {# User custom feeds #}
  9. <a class="edit-feed-link" href="{{ path('edit_feeds') }}">{{ icon('edit', 'icon icon-edit-feed') | raw }}</a>
  10. {% endif %}
  11. </summary>
  12. <nav class="frame-section-padding" tabindex="0" title="{{ 'Navigate through each feed.' | trans }}">
  13. {% if not app.user %} {# Default feeds #}
  14. <ul>
  15. <li>
  16. <a href="{{ path('feed_public') }}" class='hover-effect {{ active('feed_public') }}'>
  17. {{ 'Feed' | trans }}
  18. </a>
  19. </li>
  20. </ul>
  21. {% else %}
  22. <ul>
  23. {% for link in get_feeds(current_actor) %}
  24. <li>
  25. <a href="{{ link.getUrl() }}" class='{{ active(link.getRoute()) }}'>{{ link.getTitle() }}</a>
  26. </li>
  27. {% endfor %}
  28. {% for link in handle_event('AddMainNavigationItem', {'nickname': current_actor.getNickname()}) %}
  29. <li>
  30. <a href="{{ link['path'] }}" class='{{ active(link['path_id']) }}'>
  31. {{ link['title'] }}
  32. </a>
  33. </li>
  34. {% endfor %}
  35. </ul>
  36. {% endif %}
  37. </nav>
  38. </details>
  39. </section>
  40. {% endblock feeds %}
  41. {% block profile_current_actor %}
  42. <nav tabindex="0" class="profile-navigation" title="{{ 'Navigate through account related pages.' | trans }}">
  43. <a title='{{ 'Access your account settings.' | trans }}' href="{{ path('settings') }}" class='{{ active('settings') }}'>
  44. {% trans %}Settings{% endtrans %}
  45. </a>
  46. <a title='{{ 'Logout from your account.' | trans }}' href='{{ path('security_logout') }}'>
  47. {% trans %}Logout{% endtrans %}
  48. </a>
  49. </nav>
  50. {% endblock profile_current_actor %}
  51. {% block profile_security %}
  52. <section class='frame-section frame-section-padding' title="{{ 'Your profile information.' | trans }}">
  53. <h2 class="section-title">Account</h2>
  54. <nav tabindex="0" class="profile-navigation" title="{{ 'Navigate through account related pages.' | trans }}">
  55. <a title='{{ 'Login with your existing account.' | trans }}' href="{{ path('security_login') }}" class='hover-effect {{ active('login') }}'>
  56. {% trans %}Login{% endtrans %}
  57. </a>
  58. <a title='{{ 'Register a new account!' | trans }}' href="{{ path('security_register') }}">
  59. {% trans %}Register{% endtrans %}
  60. </a>
  61. </nav>
  62. </section>
  63. {% endblock profile_security %}
  64. {% block footer %}
  65. <nav class="footer">
  66. <ul>
  67. <li>
  68. <a href="{{ path('doc_faq') }}" class='hover-effect {{ active('doc_faq') }}'>FAQ</a>
  69. </li>
  70. <li>
  71. <a href="{{ path('doc_tos') }}" class='hover-effect {{ active('doc_tos') }}'>TOS</a>
  72. </li>
  73. <li>
  74. <a href="{{ path('doc_privacy') }}" class='hover-effect {{ active('doc_privacy') }}'>Privacy</a>
  75. </li>
  76. <li>
  77. <a href="{{ path('doc_source') }}" class='hover-effect {{ active('doc_source') }}'>Source</a>
  78. </li>
  79. <li>
  80. <a href="{{ path('doc_version') }}" class='hover-effect {{ active('doc_version') }}'>Version</a>
  81. </li>
  82. </ul>
  83. </nav>
  84. {% endblock footer %}