summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorThomas Balthazar <tbalthazar@users.noreply.github.com>2016-05-18 13:54:33 +0200
committerJoram Wilander <jwawilander@gmail.com>2016-05-18 07:54:33 -0400
commit99b8eef7e373a000f35016415ba2148f939c1155 (patch)
tree53ff88b061410fbfed3cf2c59808f9db47bd83a6 /templates
parent9d5e7478f9131f10a44d07f8b5b899e7f3b991f7 (diff)
downloadchat-99b8eef7e373a000f35016415ba2148f939c1155.tar.gz
chat-99b8eef7e373a000f35016415ba2148f939c1155.tar.bz2
chat-99b8eef7e373a000f35016415ba2148f939c1155.zip
Send email notification when username changed (#3022)
Diffstat (limited to 'templates')
-rw-r--r--templates/username_change_body.html41
-rw-r--r--templates/username_change_subject.html1
2 files changed, 42 insertions, 0 deletions
diff --git a/templates/username_change_body.html b/templates/username_change_body.html
new file mode 100644
index 000000000..56c383d49
--- /dev/null
+++ b/templates/username_change_body.html
@@ -0,0 +1,41 @@
+{{define "username_change_body"}}
+
+<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-top: 20px; line-height: 1.7; color: #555;">
+ <tr>
+ <td>
+ <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 660px; font-family: Helvetica, Arial, sans-serif; font-size: 14px; background: #FFF;">
+ <tr>
+ <td style="border: 1px solid #ddd;">
+ <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;">
+ <tr>
+ <td style="padding: 20px 20px 10px; text-align:left;">
+ <img src="{{.Props.SiteURL}}/static/images/logo-email.png" width="130px" style="opacity: 0.5" alt="">
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <table border="0" cellpadding="0" cellspacing="0" style="padding: 20px 50px 0; text-align: center; margin: 0 auto">
+ <tr>
+ <td style="border-bottom: 1px solid #ddd; padding: 0 0 20px;">
+ <h2 style="font-weight: normal; margin-top: 10px;">{{.Props.Title}}</h2>
+ <p>{{.Html.Info}}</p>
+ </td>
+ </tr>
+ <tr>
+ {{template "email_info" . }}
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ {{template "email_footer" . }}
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+
+{{end}}
diff --git a/templates/username_change_subject.html b/templates/username_change_subject.html
new file mode 100644
index 000000000..1c94bb7c0
--- /dev/null
+++ b/templates/username_change_subject.html
@@ -0,0 +1 @@
+{{define "username_change_subject"}}[{{.Props.SiteName}}] {{.Props.Subject}}{{end}}