You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.7 KiB

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ .SiteName }} &middot; Kawaii File Hosting</title>
<link rel="icon" href="favicon.ico">
<link rel="stylesheet" href="/static/pomf.css">
<script src="/static/pomf.js"></script>
<div class="container">
<div class="jumbotron">
<p class="lead">Max upload size is {{ .MaxSize }}, read the <a href="faq.html">FAQ</a></p>
<form id="upload-form" enctype="multipart/form-data" method="post" action="upload.php?output=html">
<input type="hidden" name="output" value="html">
<button style="display: none" id="upload-btn" class="btn" type="button">Select or drop file(s)</button>
<input type="file" id="upload-input" name="files[]" multiple data-max-size="{{ .MaxSize }}">
<input type="submit" value="Submit">
{{ with .Result }}<ul id="upload-filelist" {{ if or .Files .Description }}class="{{ if .Description }}error {{ else }}completed{{ end }}"{{ end }}>
{{ range .Files }}
<li class="file" data-filename="{{ .Name }}">
<span class="file-name">{{ .Name }}</span>
<span class="file-url"><a href="{{ .Url }}" target="_blank">{{ .Url }}</a></span>
{{ end }}
</ul>{{ end }}
<li><a href="/">{{ .SiteName }}</a></li>
<li><a href="mailto:{{ .Contact }}">Contact</a></li>
<li><a href="mailto:{{ .Abuse }}">Report abuse</a></li>
{{ range $name, $path := .Pages }}{{ if ne $path "index.html" }}<li><a href="{{ $path }}">{{ $name }}</a></li>{{ end }}{{ end }}