Pad_Pors
(Pad Pors)
June 27, 2017, 3:57pm
1
Continuing the discussion from Emails for rtl languages have ltr direction :
I think invitation emails are an important touch point as they are somehow like your suits for a party!
I know the name of the invitation email templates are :
invite_forum_mailer
custom_invite_mailer
invite_mailer
custom_invite_forum_mailer
user_notifications.user_invited_to_topic
user_notifications.user_invited_to_private_message_pm
but I don’t know where email templates are:
may someone familiar with the codes show @hnaseri the email templates, so that he can change their direction for rtl
languages?
elijah
(Eli the Bearded)
June 27, 2017, 4:14pm
2
2 Likes
hnaseri
(Hosein Naseri)
June 27, 2017, 8:55pm
3
I changed something in these templates and tested in dev environment. But the email didn’t change. Are you sure these are the right files?
elijah
(Eli the Bearded)
June 27, 2017, 10:33pm
4
Nope, not sure. Did the source code of the received mail look like the template you changed? Checking source to an on-hand piece of Discourse mail I have, it looks like there is at least one other template location used in mail outside of the views/email directory, these digest ones:
https://github.com/discourse/discourse/tree/master/app/views/user_notifications/digest.html.erb
And corresponding text part:
https://github.com/discourse/discourse/tree/master/app/views/user_notifications/digest.text.erb
hnaseri
(Hosein Naseri)
June 28, 2017, 7:04am
5
the template seems its for the email I tested. However I added somthing in it and it didnt change the output. So I’m not sure how it works.
btw the digest email template you mentioned is previously corrected for RTL languages by me.