summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorMichał Zając <gitlab.com@quintasan.pl>2019-05-16 11:59:02 +0000
committerRémy Coutable <remy@rymai.me>2019-05-16 11:59:02 +0000
commit411f545ce6a88db8370e639989d9c8f6d3621cbe (patch)
treeb9fe7fa6acc5a18d0aa3a87a39481521028557d0 /app/views
parent2d0f349baf83bee47c062896ac71a678e3b5f77b (diff)
downloadgitlab-ce-411f545ce6a88db8370e639989d9c8f6d3621cbe.tar.gz
Include MR information if possible when emailing notification of closing an issue
Diffstat (limited to 'app/views')
-rw-r--r--app/views/notify/closed_issue_email.html.haml2
-rw-r--r--app/views/notify/closed_issue_email.text.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/notify/closed_issue_email.html.haml b/app/views/notify/closed_issue_email.html.haml
index eb148d72da1..f21cf1ad34b 100644
--- a/app/views/notify/closed_issue_email.html.haml
+++ b/app/views/notify/closed_issue_email.html.haml
@@ -1,2 +1,2 @@
%p
- Issue was closed by #{sanitize_name(@updated_by.name)}
+ Issue was closed by #{sanitize_name(@updated_by.name)} #{closure_reason_text(@closed_via, format: formats.first)}.
diff --git a/app/views/notify/closed_issue_email.text.haml b/app/views/notify/closed_issue_email.text.haml
index b1f0a3f37ec..5567adc9165 100644
--- a/app/views/notify/closed_issue_email.text.haml
+++ b/app/views/notify/closed_issue_email.text.haml
@@ -1,3 +1,3 @@
-Issue was closed by #{sanitize_name(@updated_by.name)}
+Issue was closed by #{sanitize_name(@updated_by.name)} #{closure_reason_text(@closed_via, format: formats.first)}.
Issue ##{@issue.iid}: #{project_issue_url(@issue.project, @issue)}