docbrown/app/views/admin/email_messages/show.html.erb
Rajat Talesra 93f73636c7
Post bootstrap changes - remove headings from admin.scss (#19019)
* h1 and h2 design fixes

* h2 redesign fixes

* Removed incorrect code

* Revert incorrect test code

* h3 heading redesign

* h4,h4,h5 headings redesign

* Minor design fixes

* Fixed all heading styles

* Test case fix

* Revert incorrect if condition

* Revert incorrect if condition

* Removed non required div
2023-02-02 15:52:35 +05:30

46 lines
1.3 KiB
Text

<div class="grid gap-6">
<div class="crayons-card p-6">
<h2 class="crayons-subtitle-1">Email message</h2>
<table class="crayons-table mt-5" width="100%">
<tbody>
<tr>
<td>Subject</td>
<td><%= @email.subject %></td>
</tr>
<tr>
<td>To</td>
<td><%= @email.to %></td>
</tr>
<tr>
<td>Abuse Report (Feedback Message)</td>
<% if @email.feedback_message_id.present? %>
<td><%= link_to "See report", admin_report_path(id: @email.feedback_message_id) %></td>
<% else %>
<td>N/A</td>
<% end %>
</tr>
<tr>
<td>Sent at</td>
<td><%= @email.sent_at&.strftime("%b %e '%y") %></td>
</tr>
<tr>
<td>UTM Campaign</td>
<td><%= @email&.utm_campaign %></td>
</tr>
<tr>
<td>Mailer</td>
<td><%= @email.mailer %></td>
</tr>
</tbody>
</table>
</div>
<div class="crayons-card p-6">
<h2 class="crayons-subtitle-1">Email content</h2>
<p><em>The content is previewed below without formatting</em></p>
<div class="crayons-card my-5 p-5">
<%= @email.html_content.html_safe %>
</div>
</div>
</div>