gitlab-org--gitlab-foss/app/views/notify/repository_push_email.html.haml
Dmitriy Zaporozhets 074efd8fd5
Email on push: dont send email if new branch was pushed or branch was removed
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-12-17 16:20:45 +02:00

23 lines
486 B
Text

%h3 #{@author.name} pushed to #{@branch} at #{@project.name_with_namespace}
%h4 Commits:
%ul
- @commits.each do |commit|
%li
#{commit.short_id} - #{commit.title}
%h4 Diff:
- @diffs.each do |diff|
%li
%strong
- 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
%hr
%pre
= diff.diff
%br