- Add i18n to enterprise confirmation_instructions.html.erb (SAML/SSO support) - Add SSO-specific translation keys (en + pt_BR) - Use raw output (<%==) in Devise ERB templates to prevent apostrophe HTML-encoding
31 lines
1.5 KiB
Plaintext
31 lines
1.5 KiB
Plaintext
<p><%== t('mailer.common.hi', name: @resource.name) %>,</p>
|
|
|
|
<% account_user = @resource&.account_users&.first %>
|
|
<% brand_name = global_config['BRAND_NAME'] || 'Chatwoot' %>
|
|
|
|
<% if account_user&.inviter.present? && @resource.unconfirmed_email.blank? %>
|
|
<p><%== t('mailer.devise.confirmation_instructions.invited', inviter_name: account_user.inviter.name, account_name: account_user.account.name, brand_name: brand_name) %></p>
|
|
<% end %>
|
|
|
|
<% if @resource.confirmed? %>
|
|
<p><%== t('mailer.devise.confirmation_instructions.login_message', brand_name: brand_name) %></p>
|
|
<% else %>
|
|
<% if account_user&.inviter.blank? %>
|
|
<p>
|
|
<%== t('mailer.devise.confirmation_instructions.welcome', brand_name: brand_name) %>
|
|
</p>
|
|
<% end %>
|
|
<p><%== t('mailer.devise.confirmation_instructions.activate') %></p>
|
|
<% end %>
|
|
|
|
|
|
<% if @resource.unconfirmed_email.present? %>
|
|
<p><%= link_to t('mailer.devise.confirmation_instructions.confirm_account'), frontend_url('auth/confirmation', confirmation_token: @token) %></p>
|
|
<% elsif @resource.confirmed? %>
|
|
<p><%= link_to t('mailer.devise.confirmation_instructions.login_account'), frontend_url('auth/sign_in') %></p>
|
|
<% elsif account_user&.inviter.present? %>
|
|
<p><%= link_to t('mailer.devise.confirmation_instructions.confirm_account'), frontend_url('auth/password/edit', reset_password_token: @resource.send(:set_reset_password_token)) %></p>
|
|
<% else %>
|
|
<p><%= link_to t('mailer.devise.confirmation_instructions.confirm_account'), frontend_url('auth/confirmation', confirmation_token: @token) %></p>
|
|
<% end %>
|