diff --git a/templates/adminComments.cassius b/templates/adminComments.cassius new file mode 100644 index 0000000..0436876 --- /dev/null +++ b/templates/adminComments.cassius @@ -0,0 +1,2 @@ +.reply + margin-left: 50px diff --git a/templates/adminComments.hamlet b/templates/adminComments.hamlet new file mode 100644 index 0000000..c73b7e3 --- /dev/null +++ b/templates/adminComments.hamlet @@ -0,0 +1,25 @@ +$newline never +

Comments by medium + +$if null comments +

There are no comments yet +$else + $forall (Entity mediumId medium) <- media +

+      

#{mediumTitle medium} +
+ $forall (Entity commentId comment) <- comments + $if commentOrigin comment == mediumId +
+            #{fromJust $ commentAuthorSlug comment} wrote on #{formatTime defaultTimeLocale "%A %F %H:%M" $ commentTime comment}:
+            
+ #{commentContent comment} + Delete this comment + $forall (Entity replyId reply) <- replies + $if commentParent reply == Just commentId + $if commentOrigin reply == mediumId +
+                #{fromJust $ commentAuthorSlug comment} wrote on #{formatTime defaultTimeLocale "%A %F %H:%M" $ commentTime comment}:
+                
+ #{commentContent reply} +
Delete this comment