summaryrefslogtreecommitdiff
path: root/templates/pages/memo.gohtml
diff options
context:
space:
mode:
authorAlexander Kiryukhin <a.kiryukhin@mail.ru>2021-03-18 03:01:46 +0300
committerAlexander Kiryukhin <a.kiryukhin@mail.ru>2021-03-18 03:01:46 +0300
commit37c250d538893ff8178bd9c9e4dde225a991ce76 (patch)
tree379350cdfe47d3691fef9c8c5ef91acddfba36d3 /templates/pages/memo.gohtml
parent6f31f35c7b38fbf63d7a0c9322458e0b75828495 (diff)
pevent access from messengers
Diffstat (limited to 'templates/pages/memo.gohtml')
-rw-r--r--templates/pages/memo.gohtml14
1 files changed, 10 insertions, 4 deletions
diff --git a/templates/pages/memo.gohtml b/templates/pages/memo.gohtml
index 804d7b7..e981266 100644
--- a/templates/pages/memo.gohtml
+++ b/templates/pages/memo.gohtml
@@ -3,10 +3,16 @@
<div class="layout-center">
<form action="/">
<h1>Secret:</h1>
- <b>Warning!</b> This text already deleted from server! If you refresh or close page - secret will be completely lost!
- <hr />
- <pre>{{.secret}}</pre>
- <hr />
+ <div id="content">
+ <button
+ class='btn'
+ hx-get="/api/s/{{.id}}"
+ hx-target="#content"
+ hx-swap="innerHTML">
+ Show secret content
+ </button>
+ <span class="htmx-indicator">Loading...</span>
+ </div>
<input type="submit" value="&larr; Back">
</form>
</div>