Add share link UI after upload
This commit is contained in:
@@ -3,10 +3,23 @@
|
||||
<h1>Uploaded</h1>
|
||||
<p class="filename">{{.Meta.Filename}}</p>
|
||||
|
||||
<label class="field">
|
||||
<span>Download link</span>
|
||||
<input type="text" id="link" value="{{.URL}}" readonly>
|
||||
</label>
|
||||
<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>
|
||||
@@ -24,6 +37,6 @@
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<p><a href="{{.Base}}">Upload another</a></p>
|
||||
<p class="actions"><a class="button" href="{{.Base}}">Upload another file</a></p>
|
||||
</section>
|
||||
{{end}}
|
||||
|
||||
Reference in New Issue
Block a user