Commit 17821419 authored by Sean McGivern's avatar Sean McGivern

Remove EE-specific code from new MR email

parent a286a024
......@@ -9,9 +9,7 @@
%p
Assignee: #{@merge_request.assignee_name}
- if @merge_request.approvers.any?
%p
Approvers: #{render_items_list(@merge_request.approvers_left.map(&:name))}
= render_if_exists 'notify/merge_request_approvers', merge_request: @merge_request
- if @merge_request.description
%div
......
......@@ -5,9 +5,6 @@ New Merge Request <%= @merge_request.to_reference %>
<%= merge_path_description(@merge_request, 'to') %>
Author: <%= @merge_request.author_name %>
Assignee: <%= @merge_request.assignee_name %>
<% if @merge_request.approvers.any? %>
Approvers: <%= render_items_list(@merge_request.approvers_left.map(&:name)) %>
<% end %>
<%= render_if_exists 'notify/merge_request_approvers', merge_request: @merge_request %>
<%= @merge_request.description %>
- merge_request = local_assigns.fetch(:merge_request)
- return unless merge_request.approvers.any?
%p
Approvers: #{render_items_list(merge_request.approvers_left.map(&:name))}
<%- merge_request = local_assigns.fetch(:merge_request) -%>
<%- return unless merge_request.approvers.any? -%>
Approvers: <%= render_items_list(merge_request.approvers_left.map(&:name)) %>
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