Commit 6474b77c authored by Robert Hunt's avatar Robert Hunt

Merge branch 'ps-fix-enhanced-notify-css-vertical-spacing' into 'master'

Fix vertical spacing in enhanced_notify_css emails

See merge request gitlab-org/gitlab!84004
parents 96fd206a f21e9308
...@@ -26,11 +26,15 @@ a { ...@@ -26,11 +26,15 @@ a {
text-decoration: none; text-decoration: none;
} }
.content { .gl-mb-5 {
.md { @include gl-mb-5;
padding: 1rem 0; }
}
.gl-mt-5 {
@include gl-mt-5;
}
.content {
hr { hr {
border: 1px solid #e1e1e1; border: 1px solid #e1e1e1;
} }
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
= content_for :head do = content_for :head do
= stylesheet_link_tag 'mailers/highlighted_diff_email' = stylesheet_link_tag 'mailers/highlighted_diff_email'
%table.code %table.code.gl-mb-5
= render partial: "projects/diffs/email_line", = render partial: "projects/diffs/email_line",
collection: discussion.truncated_diff_lines(diff_limit: diff_limit), collection: discussion.truncated_diff_lines(diff_limit: diff_limit),
as: :line, as: :line,
......
...@@ -2,18 +2,17 @@ ...@@ -2,18 +2,17 @@
= html_escape(_('%{user} created a merge request: %{mr_link}')) % { user: link_to(@merge_request.author_name, user_url(@merge_request.author)), = html_escape(_('%{user} created a merge request: %{mr_link}')) % { user: link_to(@merge_request.author_name, user_url(@merge_request.author)),
mr_link: merge_request_reference_link(@merge_request) } mr_link: merge_request_reference_link(@merge_request) }
%p .branch
.branch = merge_path_description(@merge_request, 'to')
= merge_path_description(@merge_request, 'to') .author
.author Author: #{@merge_request.author_name}
Author: #{@merge_request.author_name} .assignee
.assignee = assignees_label(@merge_request)
= assignees_label(@merge_request) .reviewer
.reviewer = reviewers_label(@merge_request)
= reviewers_label(@merge_request) .approvers
.approvers = render_if_exists 'notify/merge_request_approvers', presenter: @mr_presenter
= render_if_exists 'notify/merge_request_approvers', presenter: @mr_presenter
- if @merge_request.description - if @merge_request.description
.md .md.gl-mt-5
= markdown(@merge_request.description, pipeline: :email, author: @merge_request.author, current_user: @recipient, issuable_reference_expansion_enabled: true) = markdown(@merge_request.description, pipeline: :email, author: @merge_request.author, current_user: @recipient, issuable_reference_expansion_enabled: true)
- if Gitlab::CurrentSettings.email_author_in_body - if Gitlab::CurrentSettings.email_author_in_body
%div .gl-mb-5
= _("%{author_link} wrote:").html_safe % { author_link: link_to(@note.author_name, user_url(@note.author)) } = _("%{author_link} wrote:").html_safe % { author_link: link_to(@note.author_name, user_url(@note.author)) }
.md .md
= markdown(@note.note, pipeline: :email, author: @note.author, issuable_reference_expansion_enabled: true) = markdown(@note.note, pipeline: :email, author: @note.author, issuable_reference_expansion_enabled: true)
- if Gitlab::CurrentSettings.email_author_in_body - if Gitlab::CurrentSettings.email_author_in_body
%div .gl-mb-5
#{link_to @updated_by.name, user_url(@updated_by)} added you as an approver for: #{link_to @updated_by.name, user_url(@updated_by)} added you as an approver for:
%p
.details .details
= merge_path_description(@merge_request, '→') = merge_path_description(@merge_request, '→')
.author .author
Author: #{sanitize_name(@merge_request.author_name)} Author: #{sanitize_name(@merge_request.author_name)}
.assignee .assignee
= assignees_label(@merge_request) = assignees_label(@merge_request)
.reviewer .reviewer
= reviewers_label(@merge_request) = reviewers_label(@merge_request)
.approvers .approvers
= render 'notify/merge_request_approvers', presenter: @mr_presenter = render 'notify/merge_request_approvers', presenter: @mr_presenter
- if @merge_request.description - if @merge_request.description
.md .md.gl-mt-5
= markdown(@merge_request.description, pipeline: :email, author: @merge_request.author, current_user: @recipient, issuable_reference_expansion_enabled: true) = markdown(@merge_request.description, pipeline: :email, author: @merge_request.author, current_user: @recipient, issuable_reference_expansion_enabled: true)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment