7ba0b502d3
When an email notification concerns a specific object (issue, note, merge request, etc.), add a link to the footer of the email that opens the item's page in a web browser. Rationale: * The link is predictable: always the same text, always at the same location, like any reliable tool. * It allows to remove the inline-title in many emails, and leave only the actual content of the message.
11 lines
319 B
Ruby
11 lines
319 B
Ruby
module Emails
|
|
module Groups
|
|
def group_access_granted_email(user_group_id)
|
|
@membership = UsersGroup.find(user_group_id)
|
|
@group = @membership.group
|
|
@target_url = group_url(@group)
|
|
mail(to: @membership.user.email,
|
|
subject: subject("Access to group was granted"))
|
|
end
|
|
end
|
|
end
|