public.html.twig 1.0 KB

12345678910111213141516171819202122232425262728
  1. {% extends 'stdgrid.html.twig' %}
  2. {% block title %}{{ 'Welcome! - Public Timeline' | trans }}{% endblock %}
  3. {% block stylesheets %}
  4. {{ parent() }}
  5. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/network/public.css') }}">
  6. {% endblock %}
  7. {% block body %}
  8. {# Backwards compatibility with hAtom 0.1 #}
  9. <main class="timeline" tabindex="0" role="feed">
  10. <div class="h-feed hfeed notes">
  11. {% if notes is defined and notes is not empty %}
  12. {% for conversation in notes %}
  13. {% include '/note/view.html.twig' with {'note': conversation['note'], 'have_user': have_user, 'replies': conversation['replies']} only %}
  14. <hr tabindex="0" title="{{ 'End of note and replies.' | trans }}">
  15. {% endfor %}
  16. {% else %}
  17. <div id="empty-notes"><h1>{% trans %}No notes here.{% endtrans %}</h1></div>
  18. {% endif %}
  19. </div>
  20. </main>
  21. {% endblock body %}
  22. {% block javascripts %}{% endblock %}