Logo
Explore Help
Register Sign In
github-mirror/discourse
github-mirror/discourse
2
0
Fork 0
You've already forked discourse
mirror of https://github.com/discourse/discourse.git synced 2025-03-25 04:22:40 +08:00
Code Issues Actions1 Packages Projects Releases Wiki Activity
f9e715672b
BranchesTags
View all branches
discourse/app/serializers/email_style_serializer.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
145 B
Ruby
Raw Normal View History

FEATURE: customization of html emails (#7934) 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.
2019-07-30 15:05:08 -04:00
# frozen_string_literal: true
class EmailStyleSerializer < ApplicationSerializer
attributes :id, :html, :css, :default_html, :default_css
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.4 Page: 393ms Template: 10ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API