From 6a34da30fd55e3f5b715f407b9d7ec145e165edf Mon Sep 17 00:00:00 2001 From: nek0 Date: Sat, 7 Jan 2017 17:02:49 +0100 Subject: [PATCH] replies to comments now reside in the same div as the parent --- eidolon.cabal | 2 +- templates/medium.hamlet | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/eidolon.cabal b/eidolon.cabal index c7a4f5e..0b321d0 100755 --- a/eidolon.cabal +++ b/eidolon.cabal @@ -1,5 +1,5 @@ name: eidolon -version: 0.1.8.0 +version: 0.1.8.1 synopsis: Image gallery in Yesod homepage: https://eidolon.nek0.eu license: AGPL-3 diff --git a/templates/medium.hamlet b/templates/medium.hamlet index a4c0f56..d381d5c 100755 --- a/templates/medium.hamlet +++ b/templates/medium.hamlet @@ -53,15 +53,16 @@ Reply to this comment $if userId == (Just $ commentAuthor comment) Delete this comment - $forall (Entity replyId reply) <- replies - $if commentParent reply == Just commentId -
- #{fromMaybe "" $ lookup (commentAuthor reply) authors} replied on #{formatTime defaultTimeLocale "%A %F %H:%M" $ commentTime reply}: + $forall (Entity replyId reply) <- replies + $if commentParent reply == Just commentId
- #{commentContent reply} -
- $if userId == (Just $ commentAuthor reply) - Delete this comment +
+ #{fromMaybe "" $ lookup (commentAuthor reply) authors} replied on #{formatTime defaultTimeLocale "%A %F %H:%M" $ commentTime reply}: +
+ #{commentContent reply} +
+ $if userId == (Just $ commentAuthor reply) + Delete this comment $if userId /= Nothing