diff --git a/views/mixins/catalogtile.pug b/views/mixins/catalogtile.pug index b0724dea..e054bfd4 100644 --- a/views/mixins/catalogtile.pug +++ b/views/mixins/catalogtile.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) diff --git a/views/pages/catalog.pug b/views/pages/catalog.pug index b218f8fe..4fdfd67c 100644 --- a/views/pages/catalog.pug +++ b/views/pages/catalog.pug @@ -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]