diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2021-04-05 06:17:44 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2021-04-05 06:17:44 -0400 |
| commit | 50da303c65674d076b3ea2e9c2fee20dbc7c277c (patch) | |
| tree | 29f27466188a6b989d5c29d07673652fdaa5759f | |
| parent | 1fcb5ee549fa7ba4b7bfa7e62c15dbb8a01c38b5 (diff) | |
| download | steam-export-50da303c65674d076b3ea2e9c2fee20dbc7c277c.tar.gz steam-export-50da303c65674d076b3ea2e9c2fee20dbc7c277c.tar.xz | |
Remove delete button if not local
| -rw-r--r-- | cmd/web/templates/index.html | 2 |
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 }} |
