Feature #22177 » html-mail-style.patch
| app/views/layouts/mailer.html.erb | ||
|---|---|---|
|
a:hover, a:active { color: #c61a1a; }
|
||
|
a.wiki-anchor { display: none; }
|
||
|
fieldset.attachments {border-width: 1px 0 0 0;}
|
||
|
hr {
|
||
|
width: 100%;
|
||
|
height: 1px;
|
||
|
background: #ccc;
|
||
|
border: 0;
|
||
|
margin: 1.2em 0;
|
||
|
}
|
||
|
span.footer {
|
||
|
font-size: 0.8em;
|
||
|
font-style: italic;
|
||
|
}
|
||
|
<% if Setting.emails_style.present? -%><%= Setting.emails_style %><% end -%>
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<% if Setting.emails_header.present? -%>
|
||
|
<span class="header"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_header).html_safe %></span>
|
||
|
<div class="header"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_header).html_safe %></div>
|
||
|
<% end -%>
|
||
|
<div class="mail body">
|
||
|
<%= yield %>
|
||
|
<hr />
|
||
|
</div>
|
||
|
<% if Setting.emails_footer.present? -%>
|
||
|
<span class="footer"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_footer).html_safe %></span>
|
||
|
<div class="footer"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_footer).html_safe %></div>
|
||
|
<% end -%>
|
||
|
</body>
|
||
|
</html>
|
||
| app/views/settings/_notifications.html.erb | ||
|---|---|---|
|
<%= setting_text_area :emails_footer, :label => false, :class => 'wiki-edit', :rows => 5 %>
|
||
|
</fieldset>
|
||
|
<fieldset class="box"><legend><%= l(:setting_emails_style) %></legend>
|
||
|
<%= setting_text_area :emails_style, :label => false, :class => 'wiki-edit', :rows => 5 %>
|
||
|
</fieldset>
|
||
|
<div style="float:right;">
|
||
|
<%= link_to l(:label_send_test_email), test_email_path, :method => :post %>
|
||
|
</div>
|
||
| config/locales/ar.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/az.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/bg.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/bs.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/ca.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/cs.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/da.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/de.yml | ||
|---|---|---|
|
label_default_values_for_new_users: Standardwerte für neue Benutzer
|
||
|
error_ldap_bind_credentials: Invalid LDAP Account/Password
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/el.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/en-GB.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/en.yml | ||
|---|---|---|
|
description_date_from: Enter start date
|
||
|
description_date_to: Enter end date
|
||
|
text_repository_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.'
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/es-PA.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/es.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/et.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/eu.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/fa.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/fi.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/fr.yml | ||
|---|---|---|
|
mail_body_security_notification_notify_disabled: Email address %{value} no longer
|
||
|
receives notifications.
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/gl.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/he.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/hr.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/hu.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/id.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/it.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/ja.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/ko.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/lt.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/lv.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/mk.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/mn.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/nl.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/no.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/pl.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/pt-BR.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/pt.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/ro.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/ru.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/sk.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/sl.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/sq.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/sr-YU.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/sr.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/sv.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/th.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/tr.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/uk.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/vi.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/zh-TW.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/locales/zh.yml | ||
|---|---|---|
|
receives notifications.
|
||
|
mail_body_settings_updated: ! 'The following settings were changed:'
|
||
|
field_remote_ip: IP address
|
||
|
setting_emails_style: Custom styles
|
||
| config/settings.yml | ||
|---|---|---|
|
default:
|
||
|
- '6'
|
||
|
- '7'
|
||
|
emails_style:
|
||
|
default: |-
|
||
|
.header {
|
||
|
text-align: center;
|
||
|
}
|
||
|
.mail.body {
|
||
|
padding: 1rem 2rem;
|
||
|
}
|
||
|
.footer {
|
||
|
border-top: 1px solid #444; font-size: 0.8em; font-style: italic;
|
||
|
}
|
||