foodsoft/app/views/mailer/invite.text.haml
2014-09-01 11:08:32 +02:00

6 lines
431 B
Text

= raw t '.text', user: @invite.user.name, mail: @invite.user.email, group: @invite.group.name, link: @link, expires: I18n.l(@invite.expires_at)
-# append english text only if the locale is not english
- if not I18n.locale.to_s.start_with?('en')
=======
\
= raw t '.text', user: @invite.user.name, mail: @invite.user.email, group: @invite.group.name, link: @link, expires: I18n.l(@invite.expires_at, locale: :en), locale: :en