diff options
Diffstat (limited to 'app/views/notify/member_access_denied_email.html.haml')
-rw-r--r-- | app/views/notify/member_access_denied_email.html.haml | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/app/views/notify/member_access_denied_email.html.haml b/app/views/notify/member_access_denied_email.html.haml index eeef66d353d..98d3daf2107 100644 --- a/app/views/notify/member_access_denied_email.html.haml +++ b/app/views/notify/member_access_denied_email.html.haml @@ -1,12 +1,7 @@ %tr %td.text-content %p - Your request to join the - - - if @source_hidden - #{content_tag :span, 'Hidden', class: :highlight} - - else - #{link_to member_source.human_name, member_source.web_url, class: :highlight} - - #{member_source.model_name.singular} has been #{content_tag :span, 'denied', class: :highlight}. + - target_to_join = @source_hidden ? content_tag(:span, _('Hidden'), class: :highlight) : link_to(member_source.human_name, member_source.web_url, class: :highlight) + - denied_tag = content_tag :span, _('denied'), class: :highlight + = s_('Notify|Your request to join the %{target_to_join} %{target_type} has been %{denied_tag}.').html_safe % { target_to_join: target_to_join, target_type: member_source.model_name.singular, denied_tag: denied_tag } |