eidolon/templates/adminComments.hamlet

31 lines
1.2 KiB
Plaintext
Raw Normal View History

2014-12-22 15:31:34 +00:00
$newline never
2015-01-17 13:55:40 +00:00
<div id="header" class="item">
<div class="inner">
<h1>Comments by medium
2014-12-22 15:31:34 +00:00
$if null comments
2015-01-17 13:55:40 +00:00
<div id="header" class="item">
<div class="inner">
<p>There are no comments yet
2015-01-17 13:58:39 +00:00
$else
$forall (Entity mediumId medium) <- media
<div id="header" class="item">
<div class="inner">
<h3>#{mediumTitle medium}
$forall (Entity commentId comment) <- comments
$if commentOrigin comment == mediumId
<article class="comment">
#{commentAuthorSlug comment} wrote on #{formatTime defaultTimeLocale "%A %F %H:%M" $ commentTime comment}:
2015-01-17 13:58:39 +00:00
<hr>
#{commentContent comment}
<a href=@{AdminCommentDeleteR commentId}>Delete this comment
$forall (Entity replyId reply) <- replies
$if commentParent reply == Just commentId
$if commentOrigin reply == mediumId
<article class="comment reply">
#{commentAuthorSlug comment} wrote on #{formatTime defaultTimeLocale "%A %F %H:%M" $ commentTime comment}:
2015-01-17 13:58:39 +00:00
<hr>
#{commentContent reply}
<a href=@{AdminCommentDeleteR replyId}>Delete this comment