feat: share button only

This commit is contained in:
Teajey 2024-05-13 22:40:10 +12:00
parent 018baa0e0f
commit d6e2008823
Signed by: Teajey
GPG Key ID: 970E790FE834A713
1 changed files with 3 additions and 9 deletions

View File

@ -4,15 +4,9 @@
<input type="submit" value="Logout">
</form>
<h1>Lishwist</h1>
<dl>
<dt>User reference:</dt>
<dd style="display: flex; gap: 0.5rem">
<pre>{{.Reference}}</pre>
<div style="display: flex; align-items: center;">
<button onclick="navigator.clipboard.writeText('{{.HostUrl}}/{{.Reference}}');">Copy link</button>
</div>
</dd>
</dl>
<button
onclick="navigator.clipboard.writeText('{{.HostUrl}}/{{.Reference}}'); alert('The share link to your wishlist has been copied to your clipboard.');">Get
a link to your wishlist</button>
<section>
<h2>Your wishlist</h2>
{{with .Gifts}}