mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-05 02:11:15 +08:00
Missed a couple things re: custom inserts upon splitting the `*.text/html.erb`s into partials. Before (custom text shows up _after_ popular topics section): <img width="829" height="370" alt="Screenshot 2025-07-28 at 5 02 35 PM" src="https://github.com/user-attachments/assets/e1d0ab13-085d-4eb3-8433-1cac105cea7e" /> After (custom text shows up _before_ popular topics section): <img width="754" height="308" alt="Screenshot 2025-07-28 at 5 02 00 PM" src="https://github.com/user-attachments/assets/83380f1d-c0d4-4a7f-9e6b-c23556573ed7" /> <img width="747" height="241" alt="Screenshot 2025-07-29 at 8 25 11 AM" src="https://github.com/user-attachments/assets/e3550210-94e7-4efe-acb1-aadd034cb683" /> <img width="751" height="217" alt="Screenshot 2025-07-29 at 8 25 15 AM" src="https://github.com/user-attachments/assets/bb51ce21-4117-4d7b-a8a0-a9dde1d8485c" />
55 lines
2.5 KiB
Text
55 lines
2.5 KiB
Text
<div class="summary-email">
|
|
<span class="preheader" style="display:none!important;color:#f3f3f3;font-size:1px;line-height:1px;max-height:0;max-width:0;mso-hide:all!important;opacity:0;overflow:hidden;visibility:hidden">
|
|
<%= @preheader_text %>
|
|
</span>
|
|
<table border="0" cellspacing="0" width="100%">
|
|
<tr>
|
|
<td>
|
|
<%= render_digest_header %>
|
|
<table width="100%" class="body digest-content with-dir" style="background:#f3f3f3;padding:0;border-spacing:0;font-family:Arial,sans-serif;font-size:14px;font-weight:200;line-height:1.3;vertical-align:top;">
|
|
<tr>
|
|
<td class="side-spacer" style="vertical-align:top;padding:0;">
|
|
<div class="with-accent-colors">
|
|
<table class="spacer with-accent-colors" style="border-spacing:0;padding:0;width:100%">
|
|
<tbody>
|
|
<tr>
|
|
<td height="400px" style="height:400px;border-collapse:collapse!important;margin:0;mso-line-height-rule:exactly;padding:0;"> </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
<td width="650" style="vertical-align:top;padding:0;font-family:Arial,sans-serif;">
|
|
<%= render partial: "user_notifications/digest/stats" %>
|
|
<%= render partial: "user_notifications/digest/popular_topics" %>
|
|
</td>
|
|
<td class="side-spacer" style="vertical-align:top;padding:0;">
|
|
<!-- Background that goes down part-way behind content -->
|
|
<div class="with-accent-colors">
|
|
<table class="spacer with-dir with-accent-colors" style="border-spacing:0;padding:0;width:100%">
|
|
<tbody>
|
|
<tr>
|
|
<td height="400px" style="height:400px;border-collapse:collapse!important;margin:0;mso-line-height-rule:exactly;padding:0;"> </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<%= render partial: "user_notifications/digest/popular_posts" %>
|
|
|
|
<%= render partial: "user_notifications/digest/new_topics" %>
|
|
|
|
<%= render partial: "user_notifications/digest/styles" %>
|
|
|
|
<%= digest_custom_html("above_footer") %>
|
|
<%= render partial: "user_notifications/digest/footer" %>
|
|
<%= digest_custom_html("below_footer") %>
|
|
</td>
|
|
<!-- Empty cells pad either side of the email content -->
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|