|
|
@ -1,11 +1,12 @@ |
|
|
|
mixin catalogtile(post, index) |
|
|
|
mixin catalogtile(post, index, overboard=false) |
|
|
|
- let anchorSubject = post.subject; |
|
|
|
- let anchorSubject = post.subject; |
|
|
|
if post.subject |
|
|
|
if post.subject |
|
|
|
- const subjectAnchorMatch = post.subject.match(/^\/\w+\//); |
|
|
|
- const subjectAnchorMatch = post.subject.match(/^\/\w+\//); |
|
|
|
if subjectAnchorMatch |
|
|
|
if subjectAnchorMatch |
|
|
|
- anchorSubject = subjectAnchorMatch[0] |
|
|
|
- anchorSubject = subjectAnchorMatch[0] |
|
|
|
.anchor(id=`${post.board}-${anchorSubject}`) |
|
|
|
.anchor(id=`${post.board}-${anchorSubject}`) |
|
|
|
.catalog-tile(data-board=post.board |
|
|
|
.catalog-tile(tabindex=index |
|
|
|
|
|
|
|
data-board=post.board |
|
|
|
data-post-id=post.postId |
|
|
|
data-post-id=post.postId |
|
|
|
data-user-id=post.userId |
|
|
|
data-user-id=post.userId |
|
|
|
data-name=post.name |
|
|
|
data-name=post.name |
|
|
@ -17,7 +18,7 @@ mixin catalogtile(post, index) |
|
|
|
data-bump=post.bumped) |
|
|
|
data-bump=post.bumped) |
|
|
|
- const postURL = `/${post.board}/${modview ? 'manage/' : ''}thread/${post.postId}.html` |
|
|
|
- const postURL = `/${post.board}/${modview ? 'manage/' : ''}thread/${post.postId}.html` |
|
|
|
.post-info |
|
|
|
.post-info |
|
|
|
if !index |
|
|
|
if overboard |
|
|
|
div |
|
|
|
div |
|
|
|
| Thread from |
|
|
|
| Thread from |
|
|
|
a.no-decoration.post-subject(href=`/${post.board}/`) /#{post.board}/ |
|
|
|
a.no-decoration.post-subject(href=`/${post.board}/`) /#{post.board}/ |
|
|
@ -31,7 +32,7 @@ mixin catalogtile(post, index) |
|
|
|
span(title='Replies') R: #{post.replyposts} |
|
|
|
span(title='Replies') R: #{post.replyposts} |
|
|
|
| / |
|
|
|
| / |
|
|
|
span(title='Files') F: #{post.replyfiles} |
|
|
|
span(title='Files') F: #{post.replyfiles} |
|
|
|
if index |
|
|
|
if !overboard |
|
|
|
| / |
|
|
|
| / |
|
|
|
span(title='Page') P: #{Math.ceil(index/10)} |
|
|
|
span(title='Page') P: #{Math.ceil(index/10)} |
|
|
|
if post.files.length > 0 |
|
|
|
if post.files.length > 0 |
|
|
|