repository_push_email.text.haml 674 Bytes
Newer Older
1
#{@author.name} pushed to #{@branch} at #{@project.name_with_namespace}
2 3 4 5 6 7 8

\
Commits:
- @commits.each do |commit|
  #{commit.short_id} - #{truncate(commit.title, length: 40)}
\
\
9
Changes:
10 11 12 13 14 15 16 17 18 19
- @diffs.each do |diff|
  \
  \=====================================
  - if diff.old_path == diff.new_path
    = diff.new_path
  - elsif diff.new_path && diff.old_path
    #{diff.old_path} → #{diff.new_path}
  - else
    = diff.new_path || diff.old_path
  \=====================================
20
  != diff.diff
21 22 23 24
\
- if @compare.timeout
  Huge diff. To prevent performance issues it was hidden
- elsif @compare.commits_over_limit?
25
  Changes are not shown due to large amount of commits