summaryrefslogtreecommitdiff
path: root/app/views/notify/repository_push_email.html.haml
blob: a45d1dedcd12405fbfbe05619af4e06a1a3f504f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
%h3 #{@author.name} pushed to #{@branch} at #{link_to @project.name_with_namespace, namespace_project_url(@project.namespace, @project)}

%h4 Commits:

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

%h4 Changes:
- @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
      = color_email_diff(diff.diff)
    %br

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