summaryrefslogtreecommitdiffstats
path: root/templates/identity/view.html
diff options
context:
space:
mode:
authorHumberto Rocha2022-11-30 17:12:00 -0500
committerGitHub2022-11-30 15:12:00 -0700
commit676dda0cb666d4953de9a6e62dbb53ec93c759f3 (patch)
tree19629bd57d3c6365374eb31594b1c928a711026d /templates/identity/view.html
parentf5809ea4a1c913aee7d938ccc99fa47a0c86ff53 (diff)
downloadtakahe-676dda0cb666d4953de9a6e62dbb53ec93c759f3.tar.gz
takahe-676dda0cb666d4953de9a6e62dbb53ec93c759f3.tar.bz2
takahe-676dda0cb666d4953de9a6e62dbb53ec93c759f3.zip
Add copy to clipboard action to user's handle (#82)
Diffstat (limited to 'templates/identity/view.html')
-rw-r--r--templates/identity/view.html14
1 files changed, 13 insertions, 1 deletions
diff --git a/templates/identity/view.html b/templates/identity/view.html
index ff42db6..f664736 100644
--- a/templates/identity/view.html
+++ b/templates/identity/view.html
@@ -34,7 +34,19 @@
{% endif %}
{% endif %}
- {{ identity.name_or_handle }} <small>@{{ identity.handle }}</small>
+ {{ identity.name_or_handle }}
+ <small>
+ @{{ identity.handle }}
+ <a title="Copy handle"
+ class="copy"
+ _="on click
+ writeText('@{{ identity.handle }}') into the navigator's clipboard
+ then add .copied
+ wait 2s
+ then remove .copied">
+ <i class="fa-solid fa-copy"></i>
+ </a>
+ </small>
</h1>
{% if identity.summary %}