Merge pull request #42470 from nfedyashev/add-missing-ids-to-mailer-email-template
Add missing DOM ids to rails/mailers/email.html template
This commit is contained in:
commit
4a5d8fc3c6
|
@ -56,35 +56,35 @@
|
|||
<dl>
|
||||
<% if @email.respond_to?(:smtp_envelope_from) && Array(@email.from) != Array(@email.smtp_envelope_from) %>
|
||||
<dt>SMTP-From:</dt>
|
||||
<dd><%= @email.smtp_envelope_from %></dd>
|
||||
<dd id="smtp_from"><%= @email.smtp_envelope_from %></dd>
|
||||
<% end %>
|
||||
|
||||
<% if @email.respond_to?(:smtp_envelope_to) && @email.to != @email.smtp_envelope_to %>
|
||||
<dt>SMTP-To:</dt>
|
||||
<dd><%= @email.smtp_envelope_to %></dd>
|
||||
<dd id="smtp_to"><%= @email.smtp_envelope_to %></dd>
|
||||
<% end %>
|
||||
|
||||
<dt>From:</dt>
|
||||
<dd><%= @email.header['from'] %></dd>
|
||||
<dd id="from"><%= @email.header['from'] %></dd>
|
||||
|
||||
<% if @email.reply_to %>
|
||||
<dt>Reply-To:</dt>
|
||||
<dd><%= @email.header['reply-to'] %></dd>
|
||||
<dd id="reply_to"><%= @email.header['reply-to'] %></dd>
|
||||
<% end %>
|
||||
|
||||
<dt>To:</dt>
|
||||
<dd><%= @email.header['to'] %></dd>
|
||||
<dd id="to"><%= @email.header['to'] %></dd>
|
||||
|
||||
<% if @email.cc %>
|
||||
<dt>CC:</dt>
|
||||
<dd><%= @email.header['cc'] %></dd>
|
||||
<dd id="cc"><%= @email.header['cc'] %></dd>
|
||||
<% end %>
|
||||
|
||||
<dt>Date:</dt>
|
||||
<dd><%= Time.current.rfc2822 %></dd>
|
||||
<dd id="date"><%= Time.current.rfc2822 %></dd>
|
||||
|
||||
<dt>Subject:</dt>
|
||||
<dd><strong><%= @email.subject %></strong></dd>
|
||||
<dd><strong id="subject"><%= @email.subject %></strong></dd>
|
||||
|
||||
<% unless @email.attachments.nil? || @email.attachments.empty? %>
|
||||
<dt>Attachments:</dt>
|
||||
|
|
Loading…
Reference in New Issue