mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-05 05:30:44 +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" />
16 lines
No EOL
537 B
Text
16 lines
No EOL
537 B
Text
<%- if @popular_topics.present? %>
|
|
<%= digest_custom_text("above_popular_topics") %>
|
|
### <%=t 'user_notifications.digest.popular_topics' %>
|
|
|
|
<%- @popular_topics.each_with_index do |t,i| %>
|
|
<%= raw(@markdown_linker.create(t.title, t.url)) %>
|
|
|
|
<%- if t.best_post.present? %>
|
|
<%= raw(t.best_post.excerpt(1000, strip_links: true, text_entities: true, markdown_images: true)) %>
|
|
<%- end %>
|
|
|
|
<%= digest_custom_text("below_post_#{i+1}") %>
|
|
<%- end %>
|
|
|
|
<%= digest_custom_text("below_popular_topics") %>
|
|
<%- end %> |