0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-08 17:53:55 +08:00
discourse/app/views/user_notifications/digest/_footer.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

13 lines
No EOL
589 B
Text
Vendored

<%- site_link = raw(@markdown_linker.create(@site_name, '/')) %>
<%= raw(@markdown_linker.references) %>
<%= digest_custom_text("above_footer") %>
<%=raw(t :'user_notifications.digest.unsubscribe',
site_link: site_link,
email_preferences_link: raw(@markdown_linker.create(t('user_notifications.digest.your_email_settings'), '/my/preferences/emails')),
unsubscribe_link: raw(@markdown_linker.create(t('user_notifications.digest.click_here'), "/email/unsubscribe/#{@unsubscribe_key}"))) %>
<%= raw(@markdown_linker.references) %>
<%= digest_custom_text("below_footer") %>