diff --git a/pkg/server/assets/styles/src/_settings.scss b/pkg/server/assets/styles/src/_settings.scss index d3068bec..81c2ac43 100644 --- a/pkg/server/assets/styles/src/_settings.scss +++ b/pkg/server/assets/styles/src/_settings.scss @@ -112,10 +112,12 @@ word-break: break-all; justify-content: space-between; align-items: center; + margin-top: rem(4px); @include breakpoint(md) { flex-direction: row; align-items: center; + margin-top: 0; } } diff --git a/pkg/server/views/users/login.gohtml b/pkg/server/views/users/login.gohtml index 52c070ca..5bd7f4bc 100644 --- a/pkg/server/views/users/login.gohtml +++ b/pkg/server/views/users/login.gohtml @@ -36,7 +36,7 @@ {{end}} {{define "loginForm"}} -
+ {{csrfField}}
diff --git a/pkg/server/views/users/settings.gohtml b/pkg/server/views/users/settings.gohtml index faad58cc..c38cc9cf 100644 --- a/pkg/server/views/users/settings.gohtml +++ b/pkg/server/views/users/settings.gohtml @@ -12,79 +12,11 @@
-
-

Email

- -
-
-
-

Current Email

-
- -
- {{.Email}} -
-
-
- -
-
-
-

Email Verified

-
- -
- {{ if eq true false }} b{{end}} - - {{if .EmailVerified}} - Yes - {{else}} - No - - - - - {{end}} -
-
-
- -
-
-
-

Change Email

-
-
- -
- {{template "emailForm" .}} -
-
-
- -
-

Password

- -
-
-
-

Change Password

-

- Set a unique password to protect your data. -

-
-
- -
- {{template "passwordChangeForm" .}} -
-
-
+ {{if ne .Standalone "true"}} + {{template "planSection" .}} + {{end}} + {{template "emailSection" .}} + {{template "passwordSection" .}}
@@ -198,3 +130,112 @@ {{end}} + +{{define "emailSection"}} +
+

Email

+ +
+
+
+

Current Email

+
+ +
+ {{.Email}} +
+
+
+ +
+
+
+

Email Verified

+
+ +
+ {{ if eq true false }} b{{end}} + + {{if .EmailVerified}} + Yes + {{else}} + No + + + {{end}} +
+
+
+ +
+
+
+

Change Email

+
+
+ +
+ {{template "emailForm" .}} +
+
+
+{{end}} + +{{define "passwordSection"}} +
+

Password

+ +
+
+
+

Change Password

+

+ Set a unique password to protect your data. +

+
+
+ +
+ {{template "passwordChangeForm" .}} +
+
+
+{{end}} + +{{define "planSection"}} +
+

Plan

+ +
+
+
+

Dnote Pro

+

+ Fully hosted and managed Dnote for you. +

+
+ +
+ {{if .Cloud}} + Yes + {{else}} + + Unlock + + {{end}} +
+
+ +
+
+{{end}}