page count on ctalog tiles and titles for hover tooltops

merge-requests/208/head
fatchan 5 years ago
parent 65486ebfbc
commit 4b87a14dfe
  1. 15
      views/mixins/catalogtile.pug
  2. 4
      views/pages/catalog.pug

@ -1,4 +1,4 @@
mixin catalogtile(board, post, truncate)
mixin catalogtile(board, post, index)
article(class='catalog-tile')
- const postURL = `/${board._id}/thread/${post.postId}.html#${post.postId}`
header.post-info
@ -11,12 +11,13 @@ mixin catalogtile(board, post, truncate)
if post.locked
img(src='/img/locked.svg' height='12')
|
span
a.no-decoration.post-subject(href=postURL) #{post.subject || '#'+post.postId}
| -
| R: #{post.replyposts}
| /
| F: #{post.replyfiles}
a.no-decoration.post-subject(href=postURL) #{post.subject || '#'+post.postId}
| -
span(title='Replies') R: #{post.replyposts}
| /
span(title='Files') F: #{post.replyfiles}
| /
span(title='Page') P: #{Math.ceil(index/10)}
if post.files.length > 0
.post-file-src
a(href=postURL)

@ -21,8 +21,8 @@ block content
if threads.length === 0
p No posts.
section.catalog
for thread in threads
+catalogtile(board, thread)
for thread, i in threads
+catalogtile(board, thread, i+1)
hr(size=1)
nav.pages#bottom
a(href=`/${board._id}/index.html`) [Index]

Loading…
Cancel
Save