diff --git a/email/base.gohtml b/email/base.gohtml index bbc0e99..f30654c 100644 --- a/email/base.gohtml +++ b/email/base.gohtml @@ -294,6 +294,39 @@ {{ end }} {{ end }} + {{/* actions */}} + {{with .Actions}} + {{if gt (len .) 0}} + {{range $action := .}} +
{{ $action.Instructions }}
+ {{/* count width */}} + {{ $length := len $action.Button.Text }} + {{ $width := add (mul $length 9) 20 }} + {{if (lt $width 200)}}{{$width = 200}}{{else if (gt $width 570)}}{{$width = 570}}{{else}}{{end}} + + {{/* button */}} +
+
+ {{ if $action.Button.Text }}
+
+ {{ $action.Button.Text }}
+
+ {{end}}
+ {{ if $action.InviteCode }}
+ {{ $action.InviteCode }}
+ {{end}}
+
+ |
+