summaryrefslogtreecommitdiff
path: root/app/views/notify/repository_push_email.text.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-17 15:30:15 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-17 15:30:15 +0200
commit8b89ef8639b2b6ee69d991fb0d6089f9437bbee2 (patch)
tree33d36cb32d3f659fc7e9f94f39d0bf384f53e153 /app/views/notify/repository_push_email.text.haml
parent0b59af49cb80a27ac188532c8de2bfec8a1c1d8b (diff)
downloadgitlab-ce-8b89ef8639b2b6ee69d991fb0d6089f9437bbee2.tar.gz
Add templates for Emails on push
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/notify/repository_push_email.text.haml')
-rw-r--r--app/views/notify/repository_push_email.text.haml20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/views/notify/repository_push_email.text.haml b/app/views/notify/repository_push_email.text.haml
new file mode 100644
index 00000000000..0da5b9513ee
--- /dev/null
+++ b/app/views/notify/repository_push_email.text.haml
@@ -0,0 +1,20 @@
+New push to #{@branch} at #{@project.name_with_namespace}
+
+\
+Commits:
+- @commits.each do |commit|
+ #{commit.short_id} - #{truncate(commit.title, length: 40)}
+\
+\
+Diff:
+- @diffs.each do |diff|
+ \
+ \=====================================
+ - if diff.old_path == diff.new_path
+ = diff.new_path
+ - elsif diff.new_path && diff.old_path
+ #{diff.old_path} &rarr; #{diff.new_path}
+ - else
+ = diff.new_path || diff.old_path
+ \=====================================
+ = diff.diff