From d57ef1fce725cb5c10ccdfcc8041cb2620269be0 Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Mon, 27 Mar 2023 15:07:09 -0400 Subject: [PATCH] limit warning emails (#276) --- controller/emailUi/embed.go | 2 +- controller/emailUi/limitWarning.gohtml | 153 +++++++++++++++++++++++++ controller/emailUi/limitWarning.gotext | 3 + 3 files changed, 157 insertions(+), 1 deletion(-) create mode 100644 controller/emailUi/limitWarning.gohtml create mode 100644 controller/emailUi/limitWarning.gotext diff --git a/controller/emailUi/embed.go b/controller/emailUi/embed.go index ddb7389a..8707ddec 100644 --- a/controller/emailUi/embed.go +++ b/controller/emailUi/embed.go @@ -2,5 +2,5 @@ package emailUi import "embed" -//go:embed verify.gohtml verify.gotext resetPassword.gohtml resetPassword.gotext +//go:embed verify.gohtml verify.gotext resetPassword.gohtml resetPassword.gotext limitWarning.gohtml limitWarning.gotext var FS embed.FS diff --git a/controller/emailUi/limitWarning.gohtml b/controller/emailUi/limitWarning.gohtml new file mode 100644 index 00000000..4626b954 --- /dev/null +++ b/controller/emailUi/limitWarning.gohtml @@ -0,0 +1,153 @@ + + + + + + + Transfer limit warning! + + + + + + + + + + +
+ +
+

Your account is reaching a transfer size limit, {{ .EmailAddress }}.

+

{{ .Detail }}}

+
+ + + + + + + + +
github.com/openziti/zrok
{{ .Version }}
+

Copyright © 2023 NetFoundry, Inc.

+
+ + \ No newline at end of file diff --git a/controller/emailUi/limitWarning.gotext b/controller/emailUi/limitWarning.gotext new file mode 100644 index 00000000..8a07e07e --- /dev/null +++ b/controller/emailUi/limitWarning.gotext @@ -0,0 +1,3 @@ +Your account is nearing a transfer size limit, {{ .EmailAddress }}! + +{{ .Detail }} \ No newline at end of file