Commit 7e0960f6 authored by Toon Claes's avatar Toon Claes

Bring text mail for new issue & MR more in line

Make these templates for mail notifications for a new issue and a new
merge request more similar.

Also remove some leading whitespace in text mails.
parent 78283f8b
<%= sanitize_name(@issue.author_name) %> <%= 'created an issue:' %> <%= sanitize_name(@issue.author_name) %> <%= 'created an issue:' %> <%= url_for(project_issue_url(@issue.project, @issue)) %>
<% if @issue.assignees.any? -%> <%= assignees_label(@issue) if @issue.assignees.any? %>
<%= assignees_label(@issue) %>
<% end %>
<% if @issue.description -%> <%= @issue.description %>
<%= @issue.description %>
<% end %>
<%= @merge_request.author_name %> <%= 'created a merge request:' %> <%= url_for(project_merge_request_url(@merge_request.target_project, @merge_request)) %> <%= sanitize_name(@merge_request.author_name) %> <%= 'created a merge request:' %> <%= url_for(project_merge_request_url(@merge_request.target_project, @merge_request)) %>
<%= merge_path_description(@merge_request, 'to') %> <%= merge_path_description(@merge_request, 'to') %>
<%= 'Author:' %> <%= @merge_request.author_name %> <%= 'Author:' %> <%= @merge_request.author_name %>
<%= assignees_label(@merge_request) %> <%= assignees_label(@merge_request) if @merge_request.assignees.any? %>
<%= render_if_exists 'notify/merge_request_approvers', presenter: @mr_presenter %> <%= render_if_exists 'notify/merge_request_approvers', presenter: @mr_presenter %>
<%= @merge_request.description %> <%= @merge_request.description %>
---
title: Bring text mail for new issue & MR more in line
merge_request: 32254
author:
type: changed
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