summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-12-11 11:22:12 -0800
committerReed Garmsen <rgarmsen2295@gmail.com>2015-12-11 11:44:07 -0800
commit75ce7548603072fe19f5230bd59596cc4e5959e5 (patch)
tree5fc6f24a6b250824a783e5c7817c829584fa872e /api
parentce03fbc6d8176b6d5a903312241a948f59785a04 (diff)
downloadchat-75ce7548603072fe19f5230bd59596cc4e5959e5.tar.gz
chat-75ce7548603072fe19f5230bd59596cc4e5959e5.tar.bz2
chat-75ce7548603072fe19f5230bd59596cc4e5959e5.zip
Fixed broken unsubscribe instructions
Diffstat (limited to 'api')
-rw-r--r--api/templates/email_change_body.html16
-rw-r--r--api/templates/email_change_verify_body.html16
-rw-r--r--api/templates/email_footer.html13
-rw-r--r--api/templates/email_info.html9
-rw-r--r--api/templates/find_teams_body.html16
-rw-r--r--api/templates/invite_body.html16
-rw-r--r--api/templates/password_change_body.html16
-rw-r--r--api/templates/post_body.html16
-rw-r--r--api/templates/reset_body.html16
-rw-r--r--api/templates/signup_team_body.html16
-rw-r--r--api/templates/verify_body.html16
-rw-r--r--api/templates/welcome_body.html10
12 files changed, 41 insertions, 135 deletions
diff --git a/api/templates/email_change_body.html b/api/templates/email_change_body.html
index df2db8730..7349aee6f 100644
--- a/api/templates/email_change_body.html
+++ b/api/templates/email_change_body.html
@@ -22,25 +22,13 @@
</td>
</tr>
<tr>
- <td style="color: #999; padding-top: 20px; line-height: 25px; font-size: 13px;">
- Any questions at all, mail us any time: <a href="mailto:{{.ClientCfg.FeedbackEmail}}" style="text-decoration: none; color:#2389D7;">{{.ClientCfg.FeedbackEmail}}</a>.<br>
- Best wishes,<br>
- The {{.ClientCfg.SiteName}} Team<br>
- </td>
+ {{template "email_info" . }}
</tr>
</table>
</td>
</tr>
<tr>
- <td style="text-align: center;color: #AAA; font-size: 11px; padding-bottom: 10px;">
- <p style="margin: 25px 0;">
- <img width="65" src="{{.Props.SiteURL}}/static/images/circles.png" alt="">
- </p>
- <p style="padding: 0 50px;">
- (c) 2015 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301.<br>
- If you no longer wish to receive these emails, click on the following link: <a href="mailto:{{.ClientCfg.FeedbackEmail}}?subject=Unsubscribe&body=Unsubscribe" style="text-decoration: none; color:#2389D7;">Unsubscribe</a>
- </p>
- </td>
+ {{template "email_footer" . }}
</tr>
</table>
</td>
diff --git a/api/templates/email_change_verify_body.html b/api/templates/email_change_verify_body.html
index f6bc3bc39..9d2c559b3 100644
--- a/api/templates/email_change_verify_body.html
+++ b/api/templates/email_change_verify_body.html
@@ -25,25 +25,13 @@
</td>
</tr>
<tr>
- <td style="color: #999; padding-top: 20px; line-height: 25px; font-size: 13px;">
- Any questions at all, mail us any time: <a href="mailto:{{.ClientCfg.FeedbackEmail}}" style="text-decoration: none; color:#2389D7;">{{.ClientCfg.FeedbackEmail}}</a>.<br>
- Best wishes,<br>
- The {{.ClientCfg.SiteName}} Team<br>
- </td>
+ {{template "email_info" . }}
</tr>
</table>
</td>
</tr>
<tr>
- <td style="text-align: center;color: #AAA; font-size: 11px; padding-bottom: 10px;">
- <p style="margin: 25px 0;">
- <img width="65" src="{{.Props.SiteURL}}/static/images/circles.png" alt="">
- </p>
- <p style="padding: 0 50px;">
- (c) 2015 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301.<br>
- If you no longer wish to receive these emails, click on the following link: <a href="mailto:{{.ClientCfg.FeedbackEmail}}?subject=Unsubscribe&body=Unsubscribe" style="text-decoration: none; color:#2389D7;">Unsubscribe</a>
- </p>
- </td>
+ {{template "email_footer" . }}
</tr>
</table>
</td>
diff --git a/api/templates/email_footer.html b/api/templates/email_footer.html
new file mode 100644
index 000000000..e3ff9c584
--- /dev/null
+++ b/api/templates/email_footer.html
@@ -0,0 +1,13 @@
+{{define "email_footer"}}
+
+<td style="text-align: center;color: #AAA; font-size: 11px; padding-bottom: 10px;">
+ <p style="margin: 25px 0;">
+ <img width="65" src="{{.Props.SiteURL}}/static/images/circles.png" alt="">
+ </p>
+ <p style="padding: 0 50px;">
+ (c) 2015 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301.<br>
+ To change your notification preferences, log in to your team site and go to Account Settings > Notifications.
+ </p>
+</td>
+
+{{end}}
diff --git a/api/templates/email_info.html b/api/templates/email_info.html
new file mode 100644
index 000000000..48725d144
--- /dev/null
+++ b/api/templates/email_info.html
@@ -0,0 +1,9 @@
+{{define "email_info"}}
+
+<td style="color: #999; padding-top: 20px; line-height: 25px; font-size: 13px;">
+ Any questions at all, mail us any time: <a href="mailto:{{.ClientCfg.FeedbackEmail}}" style="text-decoration: none; color:#2389D7;">{{.ClientCfg.FeedbackEmail}}</a>.<br>
+ Best wishes,<br>
+ The {{.ClientCfg.SiteName}} Team<br>
+</td>
+
+{{end}}
diff --git a/api/templates/find_teams_body.html b/api/templates/find_teams_body.html
index 4669d51c1..0b52af033 100644
--- a/api/templates/find_teams_body.html
+++ b/api/templates/find_teams_body.html
@@ -30,25 +30,13 @@
</td>
</tr>
<tr>
- <td style="color: #999; padding-top: 20px; line-height: 25px; font-size: 13px;">
- Any questions at all, mail us any time: <a href="mailto:{{.ClientCfg.FeedbackEmail}}" style="text-decoration: none; color:#2389D7;">{{.ClientCfg.FeedbackEmail}}</a>.<br>
- Best wishes,<br>
- The {{.ClientCfg.SiteName}} Team<br>
- </td>
+ {{template "email_info" . }}
</tr>
</table>
</td>
</tr>
<tr>
- <td style="text-align: center;color: #AAA; font-size: 11px; padding-bottom: 10px;">
- <p style="margin: 25px 0;">
- <img width="65" src="{{.ClientCfg.SiteURL}}/static/images/circles.png" alt="">
- </p>
- <p style="padding: 0 50px;">
- (c) 2015 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301.<br>
- If you no longer wish to receive these emails, click on the following link: <a href="mailto:{{.ClientCfg.FeedbackEmail}}?subject=Unsubscribe&body=Unsubscribe" style="text-decoration: none; color:#2389D7;">Unsubscribe</a>
- </p>
- </td>
+ {{template "email_footer" . }}
</tr>
</table>
</td>
diff --git a/api/templates/invite_body.html b/api/templates/invite_body.html
index d98f91357..a81d0c3d5 100644
--- a/api/templates/invite_body.html
+++ b/api/templates/invite_body.html
@@ -27,25 +27,13 @@
</td>
</tr>
<tr>
- <td style="color: #999; padding-top: 20px; line-height: 25px; font-size: 13px;">
- Any questions at all, mail us any time: <a href="mailto:{{.ClientCfg.FeedbackEmail}}" style="text-decoration: none; color:#2389D7;">{{.ClientCfg.FeedbackEmail}}</a>.<br>
- Best wishes,<br>
- The {{.ClientCfg.SiteName}} Team<br>
- </td>
+ {{template "email_info" . }}
</tr>
</table>
</td>
</tr>
<tr>
- <td style="text-align: center;color: #AAA; font-size: 11px; padding-bottom: 10px;">
- <p style="margin: 25px 0;">
- <img width="65" src="{{.Props.SiteURL}}/static/images/circles.png" alt="">
- </p>
- <p style="padding: 0 50px;">
- (c) 2015 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301.<br>
- If you no longer wish to receive these emails, click on the following link: <a href="mailto:{{.ClientCfg.FeedbackEmail}}?subject=Unsubscribe&body=Unsubscribe" style="text-decoration: none; color:#2389D7;">Unsubscribe</a>
- </p>
- </td>
+ {{template "email_footer" . }}
</tr>
</table>
</td>
diff --git a/api/templates/password_change_body.html b/api/templates/password_change_body.html
index 2e1df3ff2..82f4d5429 100644
--- a/api/templates/password_change_body.html
+++ b/api/templates/password_change_body.html
@@ -22,25 +22,13 @@
</td>
</tr>
<tr>
- <td style="color: #999; padding-top: 20px; line-height: 25px; font-size: 13px;">
- Any questions at all, mail us any time: <a href="mailto:{{.ClientCfg.FeedbackEmail}}" style="text-decoration: none; color:#2389D7;">{{.ClientCfg.FeedbackEmail}}</a>.<br>
- Best wishes,<br>
- The {{.ClientCfg.SiteName}} Team<br>
- </td>
+ {{template "email_info" . }}
</tr>
</table>
</td>
</tr>
<tr>
- <td style="text-align: center;color: #AAA; font-size: 11px; padding-bottom: 10px;">
- <p style="margin: 25px 0;">
- <img width="65" src="{{.Props.SiteURL}}/static/images/circles.png" alt="">
- </p>
- <p style="padding: 0 50px;">
- (c) 2015 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301.<br>
- If you no longer wish to receive these emails, click on the following link: <a href="mailto:{{.ClientCfg.FeedbackEmail}}?subject=Unsubscribe&body=Unsubscribe" style="text-decoration: none; color:#2389D7;">Unsubscribe</a>
- </p>
- </td>
+ {{template "email_footer" . }}
</tr>
</table>
</td>
diff --git a/api/templates/post_body.html b/api/templates/post_body.html
index 00d4a563d..468d5e205 100644
--- a/api/templates/post_body.html
+++ b/api/templates/post_body.html
@@ -25,25 +25,13 @@
</td>
</tr>
<tr>
- <td style="color: #999; padding-top: 20px; line-height: 25px; font-size: 13px;">
- Any questions at all, mail us any time: <a href="mailto:{{.ClientCfg.FeedbackEmail}}" style="text-decoration: none; color:#2389D7;">{{.ClientCfg.FeedbackEmail}}</a>.<br>
- Best wishes,<br>
- The {{.ClientCfg.SiteName}} Team<br>
- </td>
+ {{template "email_info" . }}
</tr>
</table>
</td>
</tr>
<tr>
- <td style="text-align: center;color: #AAA; font-size: 11px; padding-bottom: 10px;">
- <p style="margin: 25px 0;">
- <img width="65" src="{{.Props.SiteURL}}/static/images/circles.png" alt="">
- </p>
- <p style="padding: 0 50px;">
- (c) 2015 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301.<br>
- If you no longer wish to receive these emails, click on the following link: <a href="mailto:{{.ClientCfg.FeedbackEmail}}?subject=Unsubscribe&body=Unsubscribe" style="text-decoration: none; color:#2389D7;">Unsubscribe</a>
- </p>
- </td>
+ {{template "email_footer" . }}
</tr>
</table>
</td>
diff --git a/api/templates/reset_body.html b/api/templates/reset_body.html
index 5e5f6cafc..a608c804a 100644
--- a/api/templates/reset_body.html
+++ b/api/templates/reset_body.html
@@ -25,25 +25,13 @@
</td>
</tr>
<tr>
- <td style="color: #999; padding-top: 20px; line-height: 25px; font-size: 13px;">
- Any questions at all, mail us any time: <a href="mailto:{{.ClientCfg.FeedbackEmail}}" style="text-decoration: none; color:#2389D7;">{{.ClientCfg.FeedbackEmail}}</a>.<br>
- Best wishes,<br>
- The {{.ClientCfg.SiteName}} Team<br>
- </td>
+ {{template "email_info" . }}
</tr>
</table>
</td>
</tr>
<tr>
- <td style="text-align: center;color: #AAA; font-size: 11px; padding-bottom: 10px;">
- <p style="margin: 25px 0;">
- <img width="65" src="{{.Props.SiteURL}}/static/images/circles.png" alt="">
- </p>
- <p style="padding: 0 50px;">
- (c) 2015 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301.<br>
- If you no longer wish to receive these emails, click on the following link: <a href="mailto:{{.ClientCfg.FeedbackEmail}}?subject=Unsubscribe&body=Unsubscribe" style="text-decoration: none; color:#2389D7;">Unsubscribe</a>
- </p>
- </td>
+ {{template "email_footer" . }}
</tr>
</table>
</td>
diff --git a/api/templates/signup_team_body.html b/api/templates/signup_team_body.html
index 6f3deb28b..2f384ac43 100644
--- a/api/templates/signup_team_body.html
+++ b/api/templates/signup_team_body.html
@@ -25,25 +25,13 @@
</td>
</tr>
<tr>
- <td style="color: #999; padding-top: 20px; line-height: 25px; font-size: 13px;">
- Any questions at all, mail us any time: <a href="mailto:{{.ClientCfg.FeedbackEmail}}" style="text-decoration: none; color:#2389D7;">{{.ClientCfg.FeedbackEmail}}</a>.<br>
- Best wishes,<br>
- The {{.ClientCfg.SiteName}} Team<br>
- </td>
+ {{template "email_info" . }}
</tr>
</table>
</td>
</tr>
<tr>
- <td style="text-align: center;color: #AAA; font-size: 11px; padding-bottom: 10px;">
- <p style="margin: 25px 0;">
- <img width="65" src="{{.Props.SiteURL}}/static/images/circles.png" alt="">
- </p>
- <p style="padding: 0 50px;">
- (c) 2015 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301.<br>
- If you no longer wish to receive these emails, click on the following link: <a href="mailto:{{.ClientCfg.FeedbackEmail}}?subject=Unsubscribe&body=Unsubscribe" style="text-decoration: none; color:#2389D7;">Unsubscribe</a>
- </p>
- </td>
+ {{template "email_footer" . }}
</tr>
</table>
</td>
diff --git a/api/templates/verify_body.html b/api/templates/verify_body.html
index a93de9a71..97571d9e3 100644
--- a/api/templates/verify_body.html
+++ b/api/templates/verify_body.html
@@ -25,25 +25,13 @@
</td>
</tr>
<tr>
- <td style="color: #999; padding-top: 20px; line-height: 25px; font-size: 13px;">
- Any questions at all, mail us any time: <a href="mailto:{{.ClientCfg.FeedbackEmail}}" style="text-decoration: none; color:#2389D7;">{{.ClientCfg.FeedbackEmail}}</a>.<br>
- Best wishes,<br>
- The {{.ClientCfg.SiteName}} Team<br>
- </td>
+ {{template "email_info" . }}
</tr>
</table>
</td>
</tr>
<tr>
- <td style="text-align: center;color: #AAA; font-size: 11px; padding-bottom: 10px;">
- <p style="margin: 25px 0;">
- <img width="65" src="{{.Props.SiteURL}}/static/images/circles.png" alt="">
- </p>
- <p style="padding: 0 50px;">
- (c) 2015 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301.<br>
- If you no longer wish to receive these emails, click on the following link: <a href="mailto:{{.ClientCfg.FeedbackEmail}}?subject=Unsubscribe&body=Unsubscribe" style="text-decoration: none; color:#2389D7;">Unsubscribe</a>
- </p>
- </td>
+ {{template "email_footer" . }}
</tr>
</table>
</td>
diff --git a/api/templates/welcome_body.html b/api/templates/welcome_body.html
index 485bc6351..dbb94cf06 100644
--- a/api/templates/welcome_body.html
+++ b/api/templates/welcome_body.html
@@ -37,15 +37,7 @@
</td>
</tr>
<tr>
- <td style="text-align: center;color: #AAA; font-size: 11px; padding-bottom: 10px;">
- <p style="margin: 25px 0;">
- <img width="65" src="{{.Props.SiteURL}}/static/images/circles.png" alt="">
- </p>
- <p style="padding: 0 50px;">
- (c) 2015 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301.<br>
- If you no longer wish to receive these emails, click on the following link: <a href="mailto:{{.ClientCfg.FeedbackEmail}}?subject=Unsubscribe&body=Unsubscribe" style="text-decoration: none; color:#2389D7;">Unsubscribe</a>
- </p>
- </td>
+ {{template "email_footer" . }}
</tr>
</table>
</td>