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