Commit 17821419 authored by Sean McGivern's avatar Sean McGivern

Remove EE-specific code from new MR email

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