forgot even more files
This commit is contained in:
parent
fbbabe121e
commit
76e3c907ee
2 changed files with 27 additions and 0 deletions
2
templates/adminComments.cassius
Normal file
2
templates/adminComments.cassius
Normal file
|
@ -0,0 +1,2 @@
|
|||
.reply
|
||||
margin-left: 50px
|
25
templates/adminComments.hamlet
Normal file
25
templates/adminComments.hamlet
Normal file
|
@ -0,0 +1,25 @@
|
|||
$newline never
|
||||
<h3>Comments by medium
|
||||
|
||||
$if null comments
|
||||
<p>There are no comments yet
|
||||
$else
|
||||
$forall (Entity mediumId medium) <- media
|
||||
<pre>
|
||||
<h4>#{mediumTitle medium}
|
||||
<hr>
|
||||
$forall (Entity commentId comment) <- comments
|
||||
$if commentOrigin comment == mediumId
|
||||
<pre>
|
||||
#{fromJust $ commentAuthorSlug comment} wrote on #{formatTime defaultTimeLocale "%A %F %H:%M" $ commentTime comment}:
|
||||
<hr>
|
||||
#{commentContent comment}
|
||||
<a href=@{AdminCommentDeleteR commentId}>Delete this comment
|
||||
$forall (Entity replyId reply) <- replies
|
||||
$if commentParent reply == Just commentId
|
||||
$if commentOrigin reply == mediumId
|
||||
<pre class="reply">
|
||||
#{fromJust $ commentAuthorSlug comment} wrote on #{formatTime defaultTimeLocale "%A %F %H:%M" $ commentTime comment}:
|
||||
<hr>
|
||||
#{commentContent reply}
|
||||
<a href=@{AdminCommentDeleteR replyId}>Delete this comment
|
Loading…
Reference in a new issue