BigW Consortium Gitlab

repository_push_email.html.haml 817 Bytes
Newer Older
1
%h3 #{@author.name} pushed to #{@branch} at #{link_to @project.name_with_namespace, project_url(@project)}
2 3 4 5 6 7

%h4 Commits:

%ul
  - @commits.each do |commit|
    %li
8
      %strong #{link_to commit.short_id, project_commit_url(@project, commit)}
9 10 11
      %div
        %span by #{commit.author_name}
        %i at #{commit.committed_date.strftime("%Y-%m-%dT%H:%M:%SZ")}
12
      %pre #{commit.safe_message}
13

14
%h4 Changes:
15 16 17 18 19 20 21 22 23 24 25
- @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
26
      = color_email_diff(diff.diff)
27
    %br
28 29

- if @compare.timeout
Dmitriy Zaporozhets committed
30
  %h5 Huge diff. To prevent performance issues changes are hidden