view.html.twig 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {% extends 'stdgrid.html.twig' %}
  2. {% import '/cards/note/view.html.twig' as noteView %}
  3. {% set nickname = nickname|escape %}
  4. {% block title %}{% trans %}%nickname%'s profile{% endtrans %}{% endblock %}
  5. {% block stylesheets %}
  6. {{ parent() }}
  7. <link rel="stylesheet" href="{{ asset('assets/default_theme/css/pages/feeds.css') }}" type="text/css">
  8. {% endblock stylesheets %}
  9. {% block body %}
  10. {% block profile_view %}
  11. {% include 'cards/profile/view.html.twig' %}
  12. {% endblock profile_view %}
  13. <main class="feed" tabindex="0" role="feed">
  14. <div class="h-feed hfeed notes">
  15. {% if notes is defined and notes is not empty %}
  16. {% for conversation in notes %}
  17. {% block current_note %}
  18. {% if conversation is instanceof('array') %}
  19. {{ noteView.macro_note(conversation['note'], conversation['replies']) }}
  20. {% else %}
  21. {{ noteView.macro_note(conversation) }}
  22. {% endif %}
  23. <hr tabindex="0" title="{{ 'End of note and replies.' | trans }}">
  24. {% endblock current_note %}
  25. {% endfor %}
  26. {% else %}
  27. <div id="empty-notes"><h1>{% trans %}No notes here.{% endtrans %}</h1></div>
  28. {% endif %}
  29. </div>
  30. </main>
  31. {% endblock body %}