Permalink
Browse files

Disabling comments.

  • Loading branch information...
bladey committed Jul 14, 2014
1 parent 691c002 commit d161070b66fb96a328df3094db1f9ad01c827383
Showing with 21 additions and 21 deletions.
  1. +21 −21 templates/views/site/post.jade
@@ -42,29 +42,29 @@ block content
!= post.content.full
//- Comment
.comments
h4.mb-1=post.comments.length == 0 ? 'Be the first to reply' : plural(post.comments.length, '* comment', '* comments')
for comment in post.comments
if comment.author
.comment.media
.comments
h4.mb-1=post.comments.length == 0 ? 'Be the first to reply' : plural(post.comments.length, '* comment', '* comments')
for comment in post.comments
if comment.author
.comment.media
.pull-left
img(src=comment.author.photo.exists ? comment.author._.photo.thumbnail(60,60) : '/images/placeholders/user-60x60.jpg', alt=comment.author.name.full, width=40, height=40).media-object.img-circle
.media-body
h6.mt-0
=comment.author.name.full
span.text-muted · #{moment(comment.publishedOn).fromNow()}
!=comment.content.html
if user
//- Reply form
form(method='post').comment-form.mt-5
input(type='hidden', name='action', value='create-comment')
.media
.pull-left
img(src=comment.author.photo.exists ? comment.author._.photo.thumbnail(60,60) : '/images/placeholders/user-60x60.jpg', alt=comment.author.name.full, width=40, height=40).media-object.img-circle
img(src=user.photo.exists ? user._.photo.thumbnail(60,60) : '/images/placeholders/user-60x60.jpg', alt=user.name.full, width=40, height=40).img-responsive.img-circle
.media-body
h6.mt-0
=comment.author.name.full
span.text-muted · #{moment(comment.publishedOn).fromNow()}
!=comment.content.html
if user
//- Reply form
form(method='post').comment-form.mt-5
input(type='hidden', name='action', value='create-comment')
.media
.pull-left
img(src=user.photo.exists ? user._.photo.thumbnail(60,60) : '/images/placeholders/user-60x60.jpg', alt=user.name.full, width=40, height=40).img-responsive.img-circle
.media-body
textarea(placeholder='Add your comment...', name='content').form-control
.mv-1
button(type='submit').btn.btn-success Submit
textarea(placeholder='Add your comment...', name='content').form-control
.mv-1
button(type='submit').btn.btn-success Submit
block js
script(src='/js/common/share.js')
script(src="https://apis.google.com/js/plusone.js")

0 comments on commit d161070

Please sign in to comment.