public.html.twig 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {% extends 'left/left.html.twig' %}
  2. {% block meta %}
  3. {{ parent() }}
  4. {% endblock %}
  5. {% block title %}Welcome!{% 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="scope">
  36. {{ form_row(post_form.visibility) }}
  37. </div>
  38. <div class="input-wrapper">
  39. <div class="content-input">
  40. {{ form_row(post_form.content) }}
  41. </div>
  42. </div>
  43. <div class="notice-options">
  44. <div class="attachments">
  45. {{ form_widget(post_form.attachments) }}
  46. <label for="{{ post_form.attachments.vars.id }}">
  47. <svg class="icon icon-attach">
  48. <use xlink:href="#icon-attach"></use>
  49. </svg>
  50. </label>
  51. </div>
  52. <div class="post">
  53. {{ form_row(post_form.post) }}
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. {{ form_end(post_form) }}
  59. {% endif %}
  60. <div class="main">
  61. <nav class='main-nav'>
  62. <ul>
  63. <li>
  64. <a href="{{ path('main_public') }}" class='hover-effect {{ active('main_public', 'main_all', "home_all") }}'>Timeline</a>
  65. </li>
  66. </ul>
  67. </nav>
  68. <div class="notes-wrap">
  69. <nav class='main-nav'>
  70. <ul>
  71. <li>
  72. <a href="{{ path('main_public') }}" class='hover-effect {{ active('main_public') }}'>Public</a>
  73. </li>
  74. {% if user_nickname is defined %}
  75. <li>
  76. <a href="{{ path("home_all", {'nickname' : user_nickname}) }}" class='hover-effect {{ active("home_all") }}'>Home</a>
  77. </li>
  78. {% endif %}
  79. <li>
  80. <a href="{{ path('main_all') }}" class='hover-effect {{ active('main_all') }}'>Network</a>
  81. </li>
  82. </ul>
  83. </nav>
  84. <div class="timeline">
  85. <div class="notes">
  86. {% if notes is defined and notes is not empty %}
  87. {% for note in notes %}
  88. {% set id = note.getId() - 1 %}
  89. {% include '/note/view.html.twig' with {'note': note, 'have_user': have_user} only %}
  90. {% endfor %}
  91. {% else %}
  92. <h1>{% trans %}No notes here.{% endtrans %}</h1>
  93. {% endif %}
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. {% endblock body %}
  100. {% block javascripts %}{% endblock %}