From 9248cd6f1b7984459208558056ccbd1b8768a6ff Mon Sep 17 00:00:00 2001 From: ivarprudnikov Date: Mon, 22 Apr 2024 22:33:31 +0100 Subject: [PATCH] improve message ui a bit --- web/message.created.tmpl | 25 ++++++++++++++++---- web/message.show.tmpl | 51 +++++++++++++++++++++++++++------------- 2 files changed, 55 insertions(+), 21 deletions(-) diff --git a/web/message.created.tmpl b/web/message.created.tmpl index 238358d..90cb57c 100644 --- a/web/message.created.tmpl +++ b/web/message.created.tmpl @@ -5,12 +5,27 @@
{{template "nav.tmpl" .}} -

Message

+
+
+
+ +
+
+
Mesage securely stored!
+
Now, write down the PIN!
+

+ This is the only time you will see the generated PIN. The PIN will decrypt the message: +

+

+ {{.data.Pin}} +

+ Link to the message +
+
-

ID: {{ .data.PartitionKey }}

-

Created at: {{ .data.Timestamp }}

-

PIN: {{.data.Pin}}

-

Content: {{.data.Content}}

+
+
+
{{template "footer.tmpl" .}}
diff --git a/web/message.show.tmpl b/web/message.show.tmpl index 832e1ca..7168bb1 100644 --- a/web/message.show.tmpl +++ b/web/message.show.tmpl @@ -5,24 +5,43 @@
{{template "nav.tmpl" .}} -

Message

+
+
+
+ +

Secret message

+

ID: {{ .data.PartitionKey }}

+

Created at: {{ .data.Timestamp }}

+ + {{if .data.Pin}} +

Content

+

{{.data.Content}}

+ {{else}} +

Content

+ + {{end}} + +
+
+ +

Message decryption

+ {{if .data.Pin}} +

Message decrypted and deleted!

+ {{else}} +
+ +
+ + +
Provide a PIN to unlock content
+
+ +
+ {{end}} -

ID: {{ .data.PartitionKey }}

-

Created at: {{ .data.Timestamp }}

- {{if .data.Pin}} -

PIN: {{.data.Pin}}

- {{else}} -
- -
- - -
Provide a PIN to unlock content
- -
- {{end}} - {{if .data.Content}}

Content: {{.data.Content}}

{{end}} +
+
{{template "footer.tmpl" .}}