discourse/app/views/user_notifications/digest/_popular_posts.text.erb
benj 3220565a0c
FIX: Move custom digest text to correct spot (#33912)
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"
/>
2025-07-29 10:54:52 -05:00

9 lines
No EOL
368 B
Text
Vendored

<%- if @popular_posts.present? %>
### <%=t 'user_notifications.digest.popular_posts' %>
<%- @popular_posts.each_with_index do |post,i| %>
<%= post.user.username -%> - <%= raw(@markdown_linker.create(post.topic.title, post.topic.url)) %>
<%= raw(post.excerpt(1000, strip_links: true, text_entities: true, markdown_images: true)) %>
<%- end %>
<%- end %>