updown/views/updown.pug
eclipse bffe457e13 * added upload, download, and delete functionality
* added error handling
* added CSS stylesheet
* bumped version to 0.3
2023-11-11 17:22:10 +01:00

28 lines
824 B
Plaintext

doctype html
html
head(lang="en")
title Updown
link(rel='stylesheet', href='/updown.css', type='text/css')
body
div#message.table
div= message
div#f-upload.table
form#upload-form(method='post', enctype='multipart/form-data', action='/upload/')
label(for='up') Upload File
input#up(type='file', name='up')
button(type='submit') Submit
div#flist.table
div.tr#flist-heading
div.td
a(href='?sort=name') Uploaded File(s)
div.td
a(href='?sort=size') Size
each file in files
div.tr
div.td= file.name
div.td= file.size
div.td
a(href='/download/'+file.name alt="download file") 🠳
div.td
a(href='/delete/'+file.name alt="delete file") 🞬