summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-04 17:42:11 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-04 17:42:11 +0300
commit6a6803c2f96648638b79d459968b561b03fb5562 (patch)
treebd4afae30ce4b90f4a8bfb377273d2168d4feaeb /app
parentc8ac0ab392e33e66a6b984774091b8aae9661790 (diff)
downloadgitlab-ce-6a6803c2f96648638b79d459968b561b03fb5562.tar.gz
Show full commit message and author name for Email on push service
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app')
-rw-r--r--app/views/notify/repository_push_email.html.haml4
-rw-r--r--app/views/notify/repository_push_email.text.haml4
2 files changed, 6 insertions, 2 deletions
diff --git a/app/views/notify/repository_push_email.html.haml b/app/views/notify/repository_push_email.html.haml
index 85a01a567f3..bf358fe70a9 100644
--- a/app/views/notify/repository_push_email.html.haml
+++ b/app/views/notify/repository_push_email.html.haml
@@ -5,7 +5,9 @@
%ul
- @commits.each do |commit|
%li
- #{commit.short_id} - #{commit.title}
+ %strong #{commit.short_id}
+ %span by #{commit.author_name}
+ %pre #{commit.safe_message}
%h4 Changes:
- @diffs.each do |diff|
diff --git a/app/views/notify/repository_push_email.text.haml b/app/views/notify/repository_push_email.text.haml
index a15b8efe1f7..ac337c7628a 100644
--- a/app/views/notify/repository_push_email.text.haml
+++ b/app/views/notify/repository_push_email.text.haml
@@ -3,7 +3,9 @@
\
Commits:
- @commits.each do |commit|
- #{commit.short_id} - #{truncate(commit.title, length: 40)}
+ #{commit.short_id} by #{commit.author_name}
+ #{commit.safe_message}
+ \- - - - -
\
\
Changes: