|
|
|
extends ../layout.pug
|
|
|
|
include ../mixins/catalogtile.pug
|
|
|
|
include ../mixins/boardnav.pug
|
|
|
|
include ../mixins/managenav.pug
|
|
|
|
include ../mixins/boardheader.pug
|
|
|
|
include ../mixins/announcements.pug
|
|
|
|
|
|
|
|
block head
|
|
|
|
title /#{board._id}/ - Catalog
|
|
|
|
|
|
|
|
block content
|
|
|
|
+boardheader('Catalog')
|
|
|
|
br
|
|
|
|
include ../includes/postform.pug
|
|
|
|
br
|
|
|
|
+announcements()
|
|
|
|
include ../includes/stickynav.pug
|
|
|
|
.wrapbar
|
|
|
|
if modview
|
|
|
|
+managenav('catalog')
|
|
|
|
else
|
|
|
|
.pages
|
|
|
|
+boardnav('catalog', true, false)
|
|
|
|
.pages.jsonly
|
|
|
|
input#catalogfilter(type='text' placeholder='Filter')
|
|
|
|
select.ml-5.right#catalogsort
|
|
|
|
option(value="" disabled selected hidden) Sort by
|
|
|
|
option(value="bump") Bump order
|
|
|
|
option(value="date") Creation date
|
|
|
|
option(value="replies") Reply count
|
|
|
|
form(action=`/forms/board/${board._id}/${modview ? 'mod' : ''}actions` method='POST' enctype='application/x-www-form-urlencoded')
|
|
|
|
if modview
|
|
|
|
input(type='hidden' name='_csrf' value=csrf)
|
|
|
|
hr(size=1)
|
|
|
|
if threads.length === 0
|
|
|
|
p No posts.
|
|
|
|
else
|
|
|
|
.catalog
|
|
|
|
for thread, i in threads
|
|
|
|
+catalogtile(thread, i+1)
|
|
|
|
hr(size=1)
|
|
|
|
if modview
|
|
|
|
+managenav('catalog')
|
|
|
|
else
|
|
|
|
.pages
|
|
|
|
+boardnav('catalog', true, false)
|
|
|
|
if modview
|
|
|
|
include ../includes/actionfooter_manage.pug
|
|
|
|
else
|
|
|
|
include ../includes/actionfooter.pug
|