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