48 lines
1.6 KiB
HTML
48 lines
1.6 KiB
HTML
{{define "content"}}
|
|
<section class="card result">
|
|
<h1>Uploaded</h1>
|
|
<p class="filename">{{.Meta.Filename}}</p>
|
|
|
|
<div class="links">
|
|
<div class="field">
|
|
<span>Share link <em>a page showing size, expiry and a download button</em></span>
|
|
<div class="copyrow">
|
|
<input type="text" id="link-info" value="{{.InfoURL}}" readonly>
|
|
<button type="button" class="copy" data-copy="link-info" hidden>Copy</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<span>Direct download <em>the file itself, for curl, wget or a browser</em></span>
|
|
<div class="copyrow">
|
|
<input type="text" id="link-file" value="{{.URL}}" readonly>
|
|
<button type="button" class="copy" data-copy="link-file" hidden>Copy</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<dl>
|
|
<dt>Size</dt><dd>{{.Size}}</dd>
|
|
<dt>Expires</dt><dd>{{.Expires}}</dd>
|
|
<dt>SHA-256</dt><dd class="mono wrap">{{.Meta.SHA256}}</dd>
|
|
</dl>
|
|
|
|
<div class="warn">
|
|
<h2>Delete token</h2>
|
|
<p>
|
|
Shown once. Keep it alongside the share link: pasting it under
|
|
<strong>Remove this file</strong> on that page deletes the file before it
|
|
expires.
|
|
</p>
|
|
<p class="mono wrap">{{.DeleteToken}}</p>
|
|
<form method="post" action="{{.Base}}d/{{.Meta.ID}}/delete">
|
|
<input type="hidden" name="token" value="{{.DeleteToken}}">
|
|
<button type="submit" class="danger"
|
|
data-confirm="Delete {{.Meta.Filename}}? This cannot be undone.">Delete it now</button>
|
|
</form>
|
|
</div>
|
|
|
|
<p class="actions"><a class="button" href="{{.Base}}">Upload another file</a></p>
|
|
</section>
|
|
{{end}}
|