2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

Enable reply by email for all users, display a message in the footer indicating so.

This commit is contained in:
Robin Ward 2013-06-25 11:27:17 -04:00
parent 62daeedf08
commit 3fc69337d3
4 changed files with 18 additions and 9 deletions

View file

@ -39,6 +39,16 @@ module Email
@template_args ||= { site_name: SiteSetting.title,
base_url: Discourse.base_url,
user_preferences_url: "#{Discourse.base_url}/user_preferences" }.merge!(@opts)
if @template_args[:url].present?
if allow_reply_by_email? and
@template_args[:respond_instructions] = I18n.t('user_notifications.reply_by_email', @template_args)
else
@template_args[:respond_instructions] = I18n.t('user_notifications.visit_link_to_respond', @template_args)
end
end
@template_args
end
def build_args