home ยป zplus/freepost.git
Author zPlus <-> 2016-04-21 12:55:25
Committer zPlus <-> 2016-04-21 12:55:25
Commit e319bfc (patch)
Tree 9932074
Parent(s)

Remove "Reply" button if user not signed in


commits diff: ed6bc91..e319bfc
1 file changed, 10 insertions, 8 deletions โ€” download


Diffstat
-rw-r--r-- template/comment.twig 18

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+10/-8 M   template/comment.twig
index 3fe4d31..2c2610c
old size: 2K - new size: 2K
@@ -27,14 +27,16 @@
27 27 {# DateTime #}
28 28 <a href="{{ ('post/' ~ post.hashId ~ '#comment-' ~ comment.hashId)|docroot }}"><em>{{ comment.created|ago }}</em></a>
29 29
30 - โ€”
31 -
32 - {# Reply #}
33 - <a href="../reply?comment={{ comment.hashId }}">Reply</a>
34 -
35 - {# Edit #}
36 - {% if user and comment.userId == user.id %}
37 - <a href="../edit?comment={{ comment.hashId }}">Edit</a>
30 + {% if user %}
31 + โ€”
32 +
33 + {# Reply #}
34 + <a href="../reply?comment={{ comment.hashId }}">Reply</a>
35 +
36 + {% if comment.userId == user.id %}
37 + {# Edit #}
38 + <a href="../edit?comment={{ comment.hashId }}">Edit</a>
39 + {% endif %}
38 40 {% endif %}
39 41 </td>
40 42 </tr>