From 6919f385929d8b31ed708199f8ee5f0bda8dd717 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Fri, 26 Nov 2021 11:59:11 +0000 Subject: [PATCH] [UI][COMPONENT][Tag] Use base template and properly display notes in tag stream --- components/Tag/templates/tag_stream.html.twig | 17 +++++++++++------ templates/cards/note/view.html.twig | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/components/Tag/templates/tag_stream.html.twig b/components/Tag/templates/tag_stream.html.twig index f990f71208..cca76d24e8 100644 --- a/components/Tag/templates/tag_stream.html.twig +++ b/components/Tag/templates/tag_stream.html.twig @@ -1,7 +1,12 @@ -{% for note in notes %} -
- {{ note.getRendered() | raw }} -
-{% endfor %} +{% extends 'base.html.twig' %} +{% import '/cards/note/view.html.twig' as noteView %} -{{ "Page: " ~ page }} +{% block body %} + {% for note in notes %} + {% block current_note %} + {{ noteView.macro_note(note) }} + {% endblock current_note %} + {% endfor %} + + {{ "Page: " ~ page }} +{% endblock %} diff --git a/templates/cards/note/view.html.twig b/templates/cards/note/view.html.twig index dd20af0d95..1763b4df58 100644 --- a/templates/cards/note/view.html.twig +++ b/templates/cards/note/view.html.twig @@ -118,4 +118,4 @@ -{% endmacro macro_note_minimal %} \ No newline at end of file +{% endmacro macro_note_minimal %}