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. 7
      views/mixins/catalogtile.pug
  2. 13
      views/mixins/post.pug
  3. 4
      views/pages/overboard.pug

@ -11,7 +11,12 @@ mixin catalogtile(post, index)
data-bump=post.bumped)
- const postURL = `/${post.board}/${modview ? 'manage/' : ''}thread/${post.postId}.html#${post.postId}`
.post-info
input.left.post-check(type='checkbox', name='checkedposts' value=post.postId)
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)
if modview
a.left.ml-5.bold(href=`recent.html?postid=${post.postId}`) [+]
include ../includes/posticons.pug

@ -1,16 +1,17 @@
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)
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`;
.post-info
span
label
if globalmanage
input.post-check(type='checkbox', name='globalcheckedposts' value=post._id)
else if !ban
input.post-check(type='checkbox', name='checkedposts' value=post.postId)
|
if !overboard
if globalmanage
input.post-check(type='checkbox', name='globalcheckedposts' value=post._id)
else if !ban
input.post-check(type='checkbox', name='checkedposts' value=post.postId)
|
if manage
- const ip = permLevel > ipHashPermLevel ? post.ip.single.slice(-10) : post.ip.raw;
a.bold(href=`${upLevel ? '../' : ''}recent.html?ip=${encodeURIComponent(ip)}`) [#{ip}]

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

Loading…
Cancel
Save