aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web/templates/index.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/web/templates/index.html b/cmd/web/templates/index.html
index 6f015af..0717005 100644
--- a/cmd/web/templates/index.html
+++ b/cmd/web/templates/index.html
@@ -196,7 +196,9 @@
<a href="/download/{{$key}}" class="btn btn-secondary">Download</a>
{{ end }}
<button data-clipboard-text="{{$.ShareLink}}download/{{$key}}" class="btn btn-primary">Copy link</button>
+ {{ if $.Local }}
<button data-bs-target="#delete{{$val.Slug}}Modal" data-bs-toggle="modal" class="btn btn-danger">Delete</button>
+ {{ end }}
</td>
</tr>
{{ end }}