view.html.twig 943 B

12345678910111213141516171819202122232425
  1. {% extends 'stdgrid.html.twig' %}
  2. {% import '/cards/macros/note/factory.html.twig' as NoteFactory %}
  3. {% set nickname = note.getActorNickname() %}
  4. {% block title %}{% trans %}%nickname%'s note{% endtrans %}{% endblock %}
  5. {% block stylesheets %}
  6. {{ parent() }}
  7. <link rel="stylesheet" href="{{ asset('assets/default_theme/feeds.css') }}" type="text/css">
  8. {% endblock stylesheets %}
  9. {% block body %}
  10. {# Backwards compatibility with hAtom 0.1 #}
  11. <main class="feed" tabindex="0" role="feed">
  12. <div class="h-feed hfeed notes">
  13. {% if note is defined and note is not empty %}
  14. {% set args = { 'type': 'vanilla_full', 'note': note, 'extra': { 'depth': 0 } } %}
  15. {{ NoteFactory.constructor(args) }}
  16. {% else %}
  17. <div id="empty-notes"><h1>{% trans %}No notes here.{% endtrans %}</h1></div>
  18. {% endif %}
  19. </div>
  20. </main>
  21. {% endblock body %}