From e319bfc41b3b71d11961ac12e881a5440b834f42 Mon Sep 17 00:00:00 2001 From: zPlus <-> Date: Thu, 21 Apr 2016 14:55:25 +0200 Subject: [PATCH] Remove "Reply" button if user not signed in --- template/comment.twig | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/template/comment.twig b/template/comment.twig index 3fe4d31e..2c2610c2 100644 --- a/template/comment.twig +++ b/template/comment.twig @@ -27,14 +27,16 @@ {# DateTime #} {{ comment.created|ago }} - — - - {# Reply #} - Reply - - {# Edit #} - {% if user and comment.userId == user.id %} - Edit + {% if user %} + — + + {# Reply #} + Reply + + {% if comment.userId == user.id %} + {# Edit #} + Edit + {% endif %} {% endif %}