actors.html.twig 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. {% extends 'stdgrid.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. {% endblock %}
  15. {% block header %}
  16. {{ parent() }}
  17. {% endblock %}
  18. {% block left %}
  19. {{ parent() }}
  20. {% endblock %}
  21. {% block body %}
  22. <div class="content">
  23. {% if post_form is defined %}
  24. {{ form_start(post_form) }}
  25. <div class="create-notice">
  26. <div class="target">
  27. <div class="target-top">
  28. {{ form_label(post_form.to) }}
  29. </div>
  30. <div class="target-bot">
  31. {{ form_widget(post_form.to) }}
  32. </div>
  33. </div>
  34. <div class="create-right">
  35. <div class="create-top-right">
  36. <div class="scope">
  37. {{ form_row(post_form.visibility) }}
  38. </div>
  39. <div class="tabs">
  40. {% for tab in tabs %}
  41. <a href={{ path(tab['href']) }}>{{ tab['title'] }}</a>
  42. {% endfor %}
  43. </div>
  44. </div>
  45. <div class="input-wrapper">
  46. <div class="content-input">
  47. {{ form_row(post_form.content) }}
  48. </div>
  49. </div>
  50. <div class="notice-options">
  51. <div class="attachments">
  52. {{ form_widget(post_form.attachments) }}
  53. <label for="{{ post_form.attachments.vars.id }}">
  54. {{ icon('attach', 'icon icon-attach') | raw }}
  55. </label>
  56. </div>
  57. <div class="post">
  58. {{ form_row(post_form.post) }}
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. {{ form_end(post_form) }}
  64. {% endif %}
  65. <div class="main">
  66. <nav class='main-nav'>
  67. <ul>
  68. <li>
  69. <a href="{{ path('main_public') }}"
  70. 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') }}"
  79. class='hover-effect {{ active('main_public') }}'>Public</a>
  80. </li>
  81. {% if user_nickname is defined %}
  82. <li>
  83. <a href="{{ path("home_all", {'nickname' : user_nickname}) }}"
  84. class='hover-effect {{ active("home_all") }}'>Home</a>
  85. </li>
  86. {% endif %}
  87. <li>
  88. <a href="{{ path('main_all') }}" class='hover-effect {{ active('main_all') }}'>Network</a>
  89. </li>
  90. <li>
  91. <a href="{{ path('actors') }}" class='hover-effect {{ active('actors') }}'>Actors</a>
  92. </li>
  93. </ul>
  94. </nav>
  95. <div class="timeline">
  96. <div class="actors">
  97. {% if actors is defined and actors is not empty %}
  98. {% for actor in actors %}
  99. {% include '/actor/actor.html.twig' with {'actor': actor, 'have_user': have_user} only %}
  100. {% endfor %}
  101. {% else %}
  102. <h1>{% trans %}No actors here.{% endtrans %}</h1>
  103. {% endif %}
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. {% endblock body %}
  110. {% block javascripts %}{% endblock %}