post form style fixed

merge-requests/208/head
fatchan 5 years ago
parent 2a2f00e606
commit e631b6f026
  1. 10
      static/css/style.css
  2. 25
      views/mixins/post.pug

@ -46,8 +46,16 @@ input textares {
margin-left: 0; margin-left: 0;
} }
.post-info {
}
.post-image { .post-image {
display: block;
}
.post-content {
} }
.navbar { .navbar {

@ -1,14 +1,17 @@
mixin post(board, post) mixin post(board, post)
div(class='post-container '+(post.thread ? '' : 'op')) div(class='post-container '+(post.thread ? '' : 'op'))
span #{post.subject} .post-info
span , #{post.author} span #{post.subject}
span , #{post.date.toLocaleString()} span #{post.author}
span , Post span #{post.date.toLocaleString()}
if post.thread == null span Post
a(href=`/${board._id}/thread/${post._id}`) ##{post._id} if post.thread == null
else a(href=`/${board._id}/thread/${post._id}`) ##{post._id}
a(href=`/${board._id}/thread/${post.thread}#${post._id}`) ##{post._id} else
a(href=`/${board._id}/thread/${post.thread}#${post._id}`) ##{post._id}
if post.file if post.file
a(href='/img/'+post.file) .post-image
img.post-image(src='/img/thumb-'+post.file) a(href='/img/'+post.file)
p(style='white-space: pre-wrap;') #{post.content} img(src='/img/thumb-'+post.file)
.post-content
p(style='white-space: pre-wrap;') #{post.content}

Loading…
Cancel
Save