mirror of https://gitgud.io/fatchan/jschan.git
parent
c54c9e7892
commit
8712c67ae0
6 changed files with 38 additions and 37 deletions
@ -1,2 +1,2 @@ |
|||||||
.footer |
.footer |
||||||
a(href='https://github.com/fatchan/jschan/') not lynxchan™ |
a(href='https://github.com/fatchan/jschan/') open source |
||||||
|
@ -1,30 +1,28 @@ |
|||||||
mixin catalogtile(board, post, truncate) |
mixin catalogtile(board, post, truncate) |
||||||
article(class='catalog-tile') |
article(class='catalog-tile') |
||||||
- const postURL = `/${board._id}/thread/${post.postId}.html#${post.postId}` |
- const postURL = `/${board._id}/thread/${post.postId}.html#${post.postId}` |
||||||
a.catalog-tile-button(href=postURL) Open Thread |
if post.files.length > 0 |
||||||
if post.subject |
.post-file-src |
||||||
span: a.no-decoration.post-subject(href=postURL) #{post.subject} |
a(href=postURL) |
||||||
.catalog-tile-content |
if post.spoiler |
||||||
if post.files.length > 0 |
object(data='/img/spoiler.png' width='64' height='64') |
||||||
.post-file-src |
else |
||||||
a(href=postURL) |
object.catalog-thumb(data=`/img/thumb-${post.files[0].filename.split('.')[0]}.jpg` width='64' height='64') |
||||||
if post.spoiler |
header.post-info |
||||||
object(data='/img/spoiler.png' width='64' height='64') |
if post.sticky |
||||||
else |
img(src='/img/sticky.svg' height='12') |
||||||
object.catalog-thumb(data=`/img/thumb-${post.files[0].filename.split('.')[0]}.jpg` width='64' height='64') |
|
||||||
header.post-info |
|
||||||
if post.sticky |
|
||||||
img(src='/img/sticky.svg' height='12') |
|
||||||
if post.saged |
|
||||||
img(src='/img/saged.svg' height='12') |
|
||||||
if post.locked |
|
||||||
img(src='/img/locked.svg' height='12') |
|
||||||
| |
| |
||||||
span: a(href=postURL) No.#{post.postId} |
if post.saged |
||||||
|
img(src='/img/saged.svg' height='12') |
||||||
| |
| |
||||||
span Replies: #{post.replyposts} |
if post.locked |
||||||
|
img(src='/img/locked.svg' height='12') |
||||||
| |
| |
||||||
span Images: #{post.replyfiles} |
span Replies: #{post.replyposts} |
||||||
if post.message |
| |
||||||
br |
span Files: #{post.replyfiles} |
||||||
blockquote.no-m-p.post-message !{post.message} |
br |
||||||
|
span: a.no-decoration.post-subject(href=postURL) #{post.subject || 'No Subject'} |
||||||
|
if post.message |
||||||
|
br |
||||||
|
blockquote.no-m-p.post-message !{post.message} |
||||||
|
Loading…
Reference in new issue