From d51ffe8213a668305e28973d82c3202417c0d86b Mon Sep 17 00:00:00 2001 From: nek0 Date: Mon, 8 Dec 2014 06:36:38 +0100 Subject: [PATCH] activated comment deletion --- templates/medium.hamlet | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/medium.hamlet b/templates/medium.hamlet index 331fc30..0073a76 100644 --- a/templates/medium.hamlet +++ b/templates/medium.hamlet @@ -36,12 +36,16 @@ $else $if userId /= Nothing
Reply to this comment + $if userId == (commentAuthor comment) + Delete this comment $forall (Entity replyId reply) <- replies $if commentParent reply == Just commentId
           #{fromJust $ commentAuthorSlug reply} wrote on #{formatTime defaultTimeLocale "%A %F %H:%M" $ commentTime reply}:
           
#{commentContent reply} + $if userId == (commentAuthor comment) + Delete this comment $if userId /= Nothing