activated comment deletion
This commit is contained in:
parent
2446940baf
commit
d51ffe8213
1 changed files with 4 additions and 0 deletions
|
@ -36,12 +36,16 @@ $else
|
||||||
$if userId /= Nothing
|
$if userId /= Nothing
|
||||||
<hr>
|
<hr>
|
||||||
<a href=@{CommentReplyR commentId}>Reply to this comment
|
<a href=@{CommentReplyR commentId}>Reply to this comment
|
||||||
|
$if userId == (commentAuthor comment)
|
||||||
|
<a href=@{CommentDeleteR commentId}>Delete this comment
|
||||||
$forall (Entity replyId reply) <- replies
|
$forall (Entity replyId reply) <- replies
|
||||||
$if commentParent reply == Just commentId
|
$if commentParent reply == Just commentId
|
||||||
<pre class="reply">
|
<pre class="reply">
|
||||||
<a href=@{ProfileR $ fromJust $ commentAuthor reply}>#{fromJust $ commentAuthorSlug reply}</a> wrote on #{formatTime defaultTimeLocale "%A %F %H:%M" $ commentTime reply}:
|
<a href=@{ProfileR $ fromJust $ commentAuthor reply}>#{fromJust $ commentAuthorSlug reply}</a> wrote on #{formatTime defaultTimeLocale "%A %F %H:%M" $ commentTime reply}:
|
||||||
<hr>
|
<hr>
|
||||||
#{commentContent reply}
|
#{commentContent reply}
|
||||||
|
$if userId == (commentAuthor comment)
|
||||||
|
<a href=@{CommentDeleteR commentId}>Delete this comment
|
||||||
|
|
||||||
$if userId /= Nothing
|
$if userId /= Nothing
|
||||||
<form method=post enctype=#{enctype}>
|
<form method=post enctype=#{enctype}>
|
||||||
|
|
Loading…
Reference in a new issue