BigW Consortium Gitlab

repository_push_email.html.haml 656 Bytes
Newer Older
1
%h3 #{@author.name} pushed to #{@branch} at #{@project.name_with_namespace}
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

%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} → #{diff.new_path}
      - else
        = diff.new_path || diff.old_path
    %hr
    %pre
      = diff.diff
    %br
24 25 26 27 28

- if @compare.timeout
  %h5 Huge diff. To prevent performance issues it was hidden
- elsif @compare.commits_over_limit?
  %h5 Diff for big amount of commits is disabled