debian-mirror-gitlab/app/views/notify/member_invited_email.html.haml

13 lines
959 B
Text
Raw Normal View History

2021-01-29 00:20:46 +05:30
- placeholders = { strong_start: '<strong>'.html_safe, strong_end: '</strong>'.html_safe, project_or_group_name: member_source.human_name, project_or_group: member_source.model_name.singular, br_tag: '<br/>'.html_safe, role: member.human_access.downcase }
2019-12-26 22:10:19 +05:30
%tr
%td.text-content
2021-01-29 00:20:46 +05:30
%h2.invite-header
= s_('InviteEmail|You are invited!')
2019-12-26 22:10:19 +05:30
%p
- if member.created_by
2021-01-29 00:20:46 +05:30
= html_escape(s_("InviteEmail|%{inviter} invited you to join the %{strong_start}%{project_or_group_name}%{strong_end}%{br_tag}%{project_or_group} as a %{role}")) % placeholders.merge({ inviter: (link_to member.created_by.name, user_url(member.created_by)).html_safe })
- else
= html_escape(s_("InviteEmail|You are invited to join the %{strong_start}%{project_or_group_name}%{strong_end}%{br_tag}%{project_or_group} as a %{role}")) % placeholders
%p.invite-actions
= link_to s_('InviteEmail|Join now'), invite_url(@token), class: 'invite-btn-join'