mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-04 17:02:35 +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" />
19 lines
No EOL
842 B
Text
19 lines
No EOL
842 B
Text
<table class="with-dir" align="center" style="border-spacing:0;background:#fefefe;margin:0;padding:0;text-align:center;vertical-align:top;width:100%">
|
|
<tbody>
|
|
<tr>
|
|
<td class="digest-popular-topic-wrapper with-dir" style="-moz-hyphens:auto;-webkit-hyphens:auto;border-collapse:collapse!important;color:#0a0a0a;hyphens:auto;line-height:1.3;margin:0;padding:0;vertical-align:top;word-wrap:normal">
|
|
<%= digest_custom_html("above_popular_topics") %>
|
|
|
|
<% @popular_topics.each_with_index do |t, i| %>
|
|
<%= render partial: "user_notifications/digest/popular_topic", locals: { topic: t } %>
|
|
|
|
<% if i < 5 %>
|
|
<%= digest_custom_html("below_post_#{i+1}") %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%= digest_custom_html("below_popular_topics") %>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table> |