mirror of https://gitgud.io/fatchan/jschan.git
parent
0a6a8b150c
commit
b696653e73
9 changed files with 77 additions and 30 deletions
@ -1,3 +1,3 @@ |
|||||||
div |
|
||||||
ul.navbar |
ul.navbar |
||||||
li.nav-item: a(href='/') Home |
li.nav-item: a(href='/') Home |
||||||
|
li.nav-item: a(href='/login') Mod Login |
||||||
|
@ -1,10 +1,10 @@ |
|||||||
mixin post(board, post) |
mixin post(board, post) |
||||||
.post-container |
div(class='post-container '+(post.thread ? '' : 'op')) |
||||||
if post.thread == null |
if post.thread == null |
||||||
a(href=`/${board._id}/thread/${post._id}`) #{post._id} |
a(href=`/${board._id}/thread/${post._id}`) #{post._id} |
||||||
else |
else |
||||||
a(href=`/${board._id}/thread/${post.thread}#${post._id}`) #{post._id} |
a(href=`/${board._id}/thread/${post.thread}#${post._id}`) #{post._id} |
||||||
span , #{post.author} |
span , #{post.author} |
||||||
span , #{post.date} |
span , #{post.date.toLocaleString()} |
||||||
p #{post.title} |
p #{post.title} |
||||||
p #{post.content} |
p #{post.content} |
||||||
|
@ -0,0 +1,17 @@ |
|||||||
|
extends ../layout.pug |
||||||
|
|
||||||
|
block head |
||||||
|
title Board list |
||||||
|
|
||||||
|
block content |
||||||
|
table |
||||||
|
tr |
||||||
|
th Board |
||||||
|
th Name |
||||||
|
th Description |
||||||
|
each board in boards |
||||||
|
tr |
||||||
|
td: a(href='/'+board._id) /#{board._id}/ |
||||||
|
td= board.name |
||||||
|
td= board.description |
||||||
|
|
Loading…
Reference in new issue