From 37c250d538893ff8178bd9c9e4dde225a991ce76 Mon Sep 17 00:00:00 2001 From: Alexander Kiryukhin Date: Thu, 18 Mar 2021 03:01:46 +0300 Subject: pevent access from messengers --- templates/pages/memo.gohtml | 14 ++++++++++---- templates/pages/norfoundinline.gohtml | 2 ++ templates/pages/notfound.gohtml | 9 ++------- templates/pages/save.gohtml | 3 ++- templates/pages/secret.gohtml | 6 ++++++ 5 files changed, 22 insertions(+), 12 deletions(-) create mode 100644 templates/pages/norfoundinline.gohtml create mode 100644 templates/pages/secret.gohtml (limited to 'templates/pages') 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 @@

Secret:

- Warning! This text already deleted from server! If you refresh or close page - secret will be completely lost! -
-
{{.secret}}
-
+
+ + Loading... +
diff --git a/templates/pages/norfoundinline.gohtml b/templates/pages/norfoundinline.gohtml new file mode 100644 index 0000000..32c2f62 --- /dev/null +++ b/templates/pages/norfoundinline.gohtml @@ -0,0 +1,2 @@ +

Not found.

+

Link expired or already viewed.

diff --git a/templates/pages/notfound.gohtml b/templates/pages/notfound.gohtml index 911f8e1..d1b6e85 100644 --- a/templates/pages/notfound.gohtml +++ b/templates/pages/notfound.gohtml @@ -1,10 +1,5 @@ {{template "layout.gohtml" .}} {{define "content"}} -
-
-

Not found.

-

Link expired or already viewed.

- -
-
+

Not found.

+

Link expired or already viewed.

{{ end }} diff --git a/templates/pages/save.gohtml b/templates/pages/save.gohtml index f940502..2b427f6 100644 --- a/templates/pages/save.gohtml +++ b/templates/pages/save.gohtml @@ -5,7 +5,8 @@

Saved

Secret url:
- https://sendsafe.xyz/s/{{.id}} +

https://sendsafe.xyz/s/{{.id}}

+

Send this link to recepient. This link can be viewed only once!


diff --git a/templates/pages/secret.gohtml b/templates/pages/secret.gohtml new file mode 100644 index 0000000..94af286 --- /dev/null +++ b/templates/pages/secret.gohtml @@ -0,0 +1,6 @@ +Warning! This text already deleted from server! If you refresh or close page - secret will be completely lost! +
+
+    {{.secret}}
+
+
-- cgit v1.2.3