Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- each p in posts
- .w3-container.w3-card.w3-black.w3-round.w3-margin
- p= p.title
- input(type='hidden', id="idPost" value=p._id)
- if p.picture
- img.w3-margin-bottom(src="images/"+p.picture style="width:100%")
- p= p.content
- .w3-container.w3-card(id="commentSection")
- if p.comments
- each m in p.comments
- p= m.user.split(":")[1] + " "+ m.message
- textarea(id="NewComment", cols="80%", rows="1" placeholder="Enter a new comment")
- var num = $(this).closest('w3-container').find(".idPost").val();
Add Comment
Please, Sign In to add comment