mirror of
https://github.com/discourse/discourse.git
synced 2024-12-30 08:53:54 +08:00
9656a21fdb
This feature adds the ability to customize the HTML part of all emails using a custom HTML template and optionally some CSS to style it. The CSS will be parsed and converted into inline styles because CSS is poorly supported by email clients. When writing the custom HTML and CSS, be aware of what email clients support. Keep customizations very simple. Customizations can be added and edited in Admin > Customize > Email Style. Since the summary email is already heavily styled, there is a setting to disable custom styles for summary emails called "apply custom styles to digest" found in Admin > Settings > Email. As part of this work, RTL locales are now rendered correctly for all emails.
21 lines
697 B
Handlebars
21 lines
697 B
Handlebars
<div class='row'>
|
|
<div class='admin-controls'>
|
|
<nav>
|
|
<ul class='nav nav-pills'>
|
|
<li>{{#link-to 'adminCustomizeEmailStyle.edit' 'html' replace=true}}{{i18n 'admin.customize.email_style.html'}}{{/link-to}}</li>
|
|
<li>{{#link-to 'adminCustomizeEmailStyle.edit' 'css' replace=true}}{{i18n 'admin.customize.email_style.css'}}{{/link-to}}</li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
|
|
{{ace-editor content=editorContents mode=fieldName editorId=editorId}}
|
|
|
|
<div class='admin-footer'>
|
|
<div class='buttons'>
|
|
{{#d-button action=(action "reset") disabled=resetDisabled class='btn-default'}}
|
|
{{i18n 'admin.customize.email_style.reset'}}
|
|
{{/d-button}}
|
|
</div>
|
|
</div>
|