diff --git a/src/Controller/Note.php b/src/Controller/Note.php index 44ba5bb41a..3fd19b3ffe 100644 --- a/src/Controller/Note.php +++ b/src/Controller/Note.php @@ -49,6 +49,6 @@ class Note extends Controller */ public function NoteShow(Request $request, int $id) { - return $this->note($id, fn ($note) => ['_template' => '/cards/note/view.html.twig', 'note' => $note]); + return $this->note($id, fn ($note) => ['_template' => '/note/view.html.twig', 'note' => $note]); } } diff --git a/templates/note/view.html.twig b/templates/note/view.html.twig new file mode 100644 index 0000000000..8af9432527 --- /dev/null +++ b/templates/note/view.html.twig @@ -0,0 +1,22 @@ +{% extends 'stdgrid.html.twig' %} +{% import '/cards/note/view.html.twig' as noteView %} + +{% block title %}{{ note.getActorNickname() ~ '\'s note' | trans }}{% endblock %} + +{% block stylesheets %} + {{ parent() }} + +{% endblock stylesheets %} + +{% block body %} + {# Backwards compatibility with hAtom 0.1 #} +
+
+ {% if note is defined and note is not empty %} + {{ noteView.macro_note(note, null) }} + {% else %} +

{% trans %}No notes here.{% endtrans %}

+ {% endif %} +
+
+{% endblock body %}