diff --git a/web/templates/base.jade b/web/templates/base.jade deleted file mode 100644 index 486e95b..0000000 --- a/web/templates/base.jade +++ /dev/null @@ -1,23 +0,0 @@ -doctype html -html(lang='en') - head - block head - title Arav's dwelling / #{title} - meta(charset='utf-8') - meta(http-equiv='X-UA-Compatible' content='IE=edge') - meta(name='viewport' content='width=device-width, initial-scale=1.0') - meta(name='theme-color' content='#cd2682') - meta(name='description' content='My file share.') - link(rel='icon' type='image/svg+xml' href='/assets/img/favicon.svg' sizes='any') - link(href='/assets/css/main.css' rel='stylesheet') - script(src='/assets/js/main.js' defer='') - body - header - svg(viewBox='0 -25 216 40') - text Arav's dwelling - text(y='11') Welcome to my sacred place, wanderer - nav - block nav - block content - footer - | 2017—2023 Alexander "Arav" Andreev <#[a(href='mailto:me@arav.su') me@arav.su]> #[a(href='/privacy') Privacy statements] diff --git a/web/templates/errorXXX.jade b/web/templates/errorXXX.jade deleted file mode 100644 index b25f8c7..0000000 --- a/web/templates/errorXXX.jade +++ /dev/null @@ -1,21 +0,0 @@ -extends base.jade - -block meta_description - meta(name='description' content=http.StatusText(code)) - -block nav - a(href='/') Back to index page - h1 #{http.StatusText(code)} - -block content - :go:func ErrorXXX(title, reason, message, referer string, code int) - section#error - h1 #{code} - | #{http.StatusText(code)} - if reason != "" - p #{reason} - if message != "" - p #{message} - if referer != "" - section - h2 #[a(href=referer) Go back] diff --git a/web/templates/index.jade b/web/templates/index.jade deleted file mode 100644 index 4a52a90..0000000 --- a/web/templates/index.jade +++ /dev/null @@ -1,39 +0,0 @@ -extends base.jade - -block nav - a(href=mainSite) Back to main website - h1 Files - -block content - :go:func Index(title, mainSite, currentPath string, stats *files.DirStat, items *[]files.DirEntry, r *http.Request) - :go:import "dwelling-files/pkg/files" - :go:import "dwelling-files/pkg/utils" - section - span!= currentPath - p Files: #{stats.Files} (#{stats.FilesSize}); Directories: #{stats.Directories}. - input.hidden(type="text", name="filter" placeholder="Type in to filter this directory (case insensitive)") - table - thead - tr - th Name - th Date - th Size - tr(tabindex=0) - td #[a(href="../") ../] - tbody - each item, i in *items - tr(tabindex=i+1) - td #[a(href=item.Link) #{item.Name}] - td!= utils.ToClientTimezone(item.Datetime, r).Format(files.FileDateFormat) - td= item.Size - section - span!= currentPath - section - p On a page use up and down arrow keys to navigate through list. Use home and end keys to go to the start and end of a list. Use Ctrl+Backspace to return to a parent directory. - p In an overlay use a mouse wheel to change a scale of a video or a picture. Use left and right arrow keys to go through media. Use space key to toggle pause. Use escape key to close an overlay, or click outside a media. An audio volume is being kept across site using LocalStorage API. - div#overlay - button(name='prev') ❰ - div - div - span - button(name='next') ❱ \ No newline at end of file