mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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
1 changed files with 8 additions and 8 deletions
|
@ -56,35 +56,35 @@
|
||||||
<dl>
|
<dl>
|
||||||
<% if @email.respond_to?(:smtp_envelope_from) && Array(@email.from) != Array(@email.smtp_envelope_from) %>
|
<% if @email.respond_to?(:smtp_envelope_from) && Array(@email.from) != Array(@email.smtp_envelope_from) %>
|
||||||
<dt>SMTP-From:</dt>
|
<dt>SMTP-From:</dt>
|
||||||
<dd><%= @email.smtp_envelope_from %></dd>
|
<dd id="smtp_from"><%= @email.smtp_envelope_from %></dd>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if @email.respond_to?(:smtp_envelope_to) && @email.to != @email.smtp_envelope_to %>
|
<% if @email.respond_to?(:smtp_envelope_to) && @email.to != @email.smtp_envelope_to %>
|
||||||
<dt>SMTP-To:</dt>
|
<dt>SMTP-To:</dt>
|
||||||
<dd><%= @email.smtp_envelope_to %></dd>
|
<dd id="smtp_to"><%= @email.smtp_envelope_to %></dd>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<dt>From:</dt>
|
<dt>From:</dt>
|
||||||
<dd><%= @email.header['from'] %></dd>
|
<dd id="from"><%= @email.header['from'] %></dd>
|
||||||
|
|
||||||
<% if @email.reply_to %>
|
<% if @email.reply_to %>
|
||||||
<dt>Reply-To:</dt>
|
<dt>Reply-To:</dt>
|
||||||
<dd><%= @email.header['reply-to'] %></dd>
|
<dd id="reply_to"><%= @email.header['reply-to'] %></dd>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<dt>To:</dt>
|
<dt>To:</dt>
|
||||||
<dd><%= @email.header['to'] %></dd>
|
<dd id="to"><%= @email.header['to'] %></dd>
|
||||||
|
|
||||||
<% if @email.cc %>
|
<% if @email.cc %>
|
||||||
<dt>CC:</dt>
|
<dt>CC:</dt>
|
||||||
<dd><%= @email.header['cc'] %></dd>
|
<dd id="cc"><%= @email.header['cc'] %></dd>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<dt>Date:</dt>
|
<dt>Date:</dt>
|
||||||
<dd><%= Time.current.rfc2822 %></dd>
|
<dd id="date"><%= Time.current.rfc2822 %></dd>
|
||||||
|
|
||||||
<dt>Subject:</dt>
|
<dt>Subject:</dt>
|
||||||
<dd><strong><%= @email.subject %></strong></dd>
|
<dd><strong id="subject"><%= @email.subject %></strong></dd>
|
||||||
|
|
||||||
<% unless @email.attachments.nil? || @email.attachments.empty? %>
|
<% unless @email.attachments.nil? || @email.attachments.empty? %>
|
||||||
<dt>Attachments:</dt>
|
<dt>Attachments:</dt>
|
||||||
|
|
Loading…
Reference in a new issue