From 026c8505049ac3a61c594184c84dde7b9f38a38c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Tue, 25 Dec 2018 11:45:30 -0500 Subject: [PATCH] Avoid printing reply link to regular users don't want it for admins either but that'll wait on official D8 FlatComments which Gnuget ported already: https://www.drupal.org/project/flatcomments/issues/2820578 --- agaric/templates/content/comment.html.twig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/agaric/templates/content/comment.html.twig b/agaric/templates/content/comment.html.twig index 3576cc4..e65431c 100644 --- a/agaric/templates/content/comment.html.twig +++ b/agaric/templates/content/comment.html.twig @@ -97,6 +97,11 @@ {{ comment.label }} {{ title_suffix }} {% endif %} - {{ content }} + {{ content|without('links') }} + {# Until we have FlatComments in D8 officially, we'll do this. Gnuget did + the port: https://www.drupal.org/project/flatcomments/issues/2820578 #} + {% if user.hasPermission('administer comments') %} + {{ content.links }} + {% endif %}