23 lines
662 B
Plaintext
23 lines
662 B
Plaintext
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<body>
|
||
|
<h1>Simple Downloader</h1>
|
||
|
<form action="/upload" method="post" enctype="multipart/form-data">
|
||
|
<input type="file" name="file" accept=".drmd">
|
||
|
<input type="submit" value="Upload and Process">
|
||
|
</form>
|
||
|
<h2>Currently Running Jobs</h2>
|
||
|
<ul>
|
||
|
{{range $filename, $info := .Jobs}}
|
||
|
<li>
|
||
|
<a href="/progress?filename={{$filename}}">{{$filename}}</a>:
|
||
|
{{printf "%.2f%%" $info.Percentage}}
|
||
|
(Current file: {{$info.CurrentFile}})
|
||
|
</li>
|
||
|
{{else}}
|
||
|
<li>No active jobs</li>
|
||
|
{{end}}
|
||
|
</ul>
|
||
|
</body>
|
||
|
</html>
|