Add board link to ob catalog juse like the index, and hide the checkboxes on both until #250 gets done

merge-requests/208/head
Thomas Lynch 4 years ago
parent 6d54a749bf
commit 18cf982cdb
  1. 5
      views/mixins/catalogtile.pug
  2. 3
      views/mixins/post.pug
  3. 4
      views/pages/overboard.pug

@ -11,6 +11,11 @@ mixin catalogtile(post, index)
data-bump=post.bumped) data-bump=post.bumped)
- const postURL = `/${post.board}/${modview ? 'manage/' : ''}thread/${post.postId}.html#${post.postId}` - const postURL = `/${post.board}/${modview ? 'manage/' : ''}thread/${post.postId}.html#${post.postId}`
.post-info .post-info
if !index
div
| Thread from
a.no-decoration.post-subject(href=`/${post.board}/`) /#{post.board}/
else
input.left.post-check(type='checkbox', name='checkedposts' value=post.postId) input.left.post-check(type='checkbox', name='checkedposts' value=post.postId)
if modview if modview
a.left.ml-5.bold(href=`recent.html?postid=${post.postId}`) [+] a.left.ml-5.bold(href=`recent.html?postid=${post.postId}`) [+]

@ -1,11 +1,12 @@
include ./report.pug include ./report.pug
mixin post(post, truncate, manage=false, globalmanage=false, ban=false) mixin post(post, truncate, manage=false, globalmanage=false, ban=false, overboard=false)
.anchor(id=post.postId) .anchor(id=post.postId)
div(class=`post-container ${post.thread || ban === true ? '' : 'op'}` data-board=post.board data-post-id=post.postId data-user-id=post.userId data-name=post.name data-tripcode=post.tripcode data-subject=post.subject) div(class=`post-container ${post.thread || ban === true ? '' : 'op'}` data-board=post.board data-post-id=post.postId data-user-id=post.userId data-name=post.name data-tripcode=post.tripcode data-subject=post.subject)
- const postURL = `/${post.board}/${(modview || manage || globalmanage) ? 'manage/' : ''}thread/${post.thread || post.postId}.html`; - const postURL = `/${post.board}/${(modview || manage || globalmanage) ? 'manage/' : ''}thread/${post.thread || post.postId}.html`;
.post-info .post-info
span span
label label
if !overboard
if globalmanage if globalmanage
input.post-check(type='checkbox', name='globalcheckedposts' value=post._id) input.post-check(type='checkbox', name='globalcheckedposts' value=post._id)
else if !ban else if !ban

@ -19,7 +19,7 @@ block content
for thread in threads for thread in threads
h4.no-m-p Thread from #[a(href=`/${thread.board}/index.html`) /#{thread.board}/] h4.no-m-p Thread from #[a(href=`/${thread.board}/index.html`) /#{thread.board}/]
.thread .thread
+post(thread, true) +post(thread, true, false, false, false, true)
for post in thread.replies for post in thread.replies
+post(post, true) +post(post, true, false, false, false, true)
hr(size=1) hr(size=1)

Loading…
Cancel
Save