filesharing/views/index.pug
2022-08-27 00:46:04 +08:00

24 lines
839 B
Plaintext

doctype html
html(lang='zh')
head
meta(charset='UTF-8')
meta(http-equiv='X-UA-Compatible' content='IE=edge')
meta(name='viewport' content='width=device-width, initial-scale=1.0')
link(rel='icon' href='/favicon.ico' type='image/x-icon')
link(rel='stylesheet' href='/style.css')
title 文件分享
body
h1 文件分享
p
a(href='/upload') 我要上传
ul
if filesharing.length==0
li 暂无文件
else
for file in filesharing
li
a(href=`/download/${file.id}`)= file.filename
if file.password
span   ㊙️
span.small   ( #{moment(file.createdAt).fromNow()}, #{file.downloads} 次下载 )