diff --git a/components/Attachment/Controller/Attachment.php b/components/Attachment/Controller/Attachment.php index 36a75a9ba1..3e363bc9b8 100644 --- a/components/Attachment/Controller/Attachment.php +++ b/components/Attachment/Controller/Attachment.php @@ -89,7 +89,7 @@ class Attachment extends Controller try { return $this->attachment($attachment_id, $note_id, function ($res) use ($note_id, $attachment_id) { return [ - '_template' => '/cards/attachments/view.html.twig', + '_template' => '/cards/attachments/show.html.twig', 'download' => $res['attachment']->getDownloadUrl(note: $note_id), 'title' => $res['title'], 'attachment' => $res['attachment'], diff --git a/templates/cards/attachments/show.html.twig b/templates/cards/attachments/show.html.twig index 95f63b04bb..a2e1e8a674 100644 --- a/templates/cards/attachments/show.html.twig +++ b/templates/cards/attachments/show.html.twig @@ -3,11 +3,8 @@ {% block body %}
- {% include '/cards/attachments/view.html.twig' with {'attachment': attachment, 'note': note, 'title': title} only %} - {{ 'Download link' | trans }}
-
{% endblock body %} \ No newline at end of file