groups.html.twig 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. {% extends 'left/left.html.twig' %}
  2. {% block meta %}
  3. {{ parent() }}
  4. {% endblock %}
  5. {% block title %}Actors{% endblock %}
  6. {% block stylesheets %}
  7. {{ parent() }}
  8. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/network/public.css') }}"
  9. media="screen and (min-width: 1300px)">
  10. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/network/public_mid.css') }}"
  11. media="screen and (max-width: 1300px)">
  12. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/network/public_small.css') }}"
  13. media="screen and (max-width: 750px)">
  14. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/directory/groups.css') }}">
  15. {% endblock %}
  16. {% block header %}
  17. {{ parent() }}
  18. {% endblock %}
  19. {% block left %}
  20. {{ parent() }}
  21. {% endblock %}
  22. {% block body %}
  23. <div class="content">
  24. {% if post_form is defined %}
  25. {{ form_start(post_form) }}
  26. <div class="create-notice">
  27. <div class="target">
  28. <div class="target-top">
  29. {{ form_label(post_form.to) }}
  30. </div>
  31. <div class="target-bot">
  32. {{ form_widget(post_form.to) }}
  33. </div>
  34. </div>
  35. <div class="create-right">
  36. <div class="create-top-right">
  37. <div class="scope">
  38. {{ form_row(post_form.visibility) }}
  39. </div>
  40. <div class="tabs">
  41. {% for tab in tabs %}
  42. <a href={{ path(tab['href']) }}>{{ tab['title'] }}</a>
  43. {% endfor %}
  44. </div>
  45. </div>
  46. <div class="input-wrapper">
  47. <div class="content-input">
  48. {{ form_row(post_form.content) }}
  49. </div>
  50. </div>
  51. <div class="notice-options">
  52. <div class="attachments">
  53. {{ form_widget(post_form.attachments) }}
  54. <label for="{{ post_form.attachments.vars.id }}">
  55. {{ icon('attach', 'icon icon-attach') | raw }}
  56. </label>
  57. </div>
  58. <div class="post">
  59. {{ form_row(post_form.post) }}
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. {{ form_end(post_form) }}
  65. {% endif %}
  66. <div class="main">
  67. <nav class='main-nav'>
  68. <ul>
  69. <li>
  70. <a href="{{ path('main_public') }}" class='hover-effect {{ active('main_public', 'main_all', "home_all") }}'>Timeline</a>
  71. </li>
  72. </ul>
  73. </nav>
  74. <div class="notes-wrap">
  75. <nav class='main-nav'>
  76. <ul>
  77. <li>
  78. <a href="{{ path('main_public') }}" class='hover-effect {{ active('main_public') }}'>Public</a>
  79. </li>
  80. {% if user_nickname is defined %}
  81. <li>
  82. <a href="{{ path("home_all", {'nickname' : user_nickname}) }}" class='hover-effect {{ active("home_all") }}'>Home</a>
  83. </li>
  84. {% endif %}
  85. <li>
  86. <a href="{{ path('main_all') }}" class='hover-effect {{ active('main_all') }}'>Network</a>
  87. </li>
  88. {% for tab in main_nav_tabs %}
  89. <li>
  90. <a href="{{ path(tab['route']) }}" class='hover-effect {{ active(tab['route']) }}' >{{ tab['title'] }}</a>
  91. </li>
  92. {% endfor %}
  93. </ul>
  94. </nav>
  95. <div class="timeline">
  96. <div class="groups">
  97. {% if groups is defined and groups is not empty %}
  98. {% for group in groups %}
  99. {% include '/directory/group.html.twig' with {'group': group, 'have_user': have_user} only %}
  100. {% endfor %}
  101. {% else %}
  102. <h1>{% trans %}No groups here.{% endtrans %}</h1>
  103. {% endif %}
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. {% endblock body %}
  110. {% block javascripts %}{% endblock %}