debian-mirror-gitlab/app/views/notify/repository_push_email.html.haml

69 lines
2.1 KiB
Text
Raw Normal View History

2015-12-23 02:04:40 +05:30
%h3
#{@message.author_name} #{@message.action_name} #{@message.ref_type} #{@message.ref_name}
at #{link_to(@message.project_name_with_namespace, namespace_project_url(@message.project_namespace, @message.project))}
2014-09-02 18:07:02 +05:30
2015-12-23 02:04:40 +05:30
- if @message.compare
- if @message.reverse_compare?
2015-04-26 12:48:37 +05:30
%p
%strong WARNING:
The push did not contain any new commits, but force pushed to delete the commits and changes below.
2014-09-02 18:07:02 +05:30
2015-04-26 12:48:37 +05:30
%h4
2015-12-23 02:04:40 +05:30
= @message.reverse_compare? ? "Deleted commits:" : "Commits:"
2014-09-02 18:07:02 +05:30
2015-04-26 12:48:37 +05:30
%ul
2015-12-23 02:04:40 +05:30
- @message.commits.each do |commit|
2015-04-26 12:48:37 +05:30
%li
2015-12-23 02:04:40 +05:30
%strong #{link_to(commit.short_id, namespace_project_commit_url(@message.project_namespace, @message.project, commit))}
2015-04-26 12:48:37 +05:30
%div
%span by #{commit.author_name}
%i at #{commit.committed_date.to_s(:iso8601)}
2015-04-26 12:48:37 +05:30
%pre.commit-message
= commit.safe_message
2014-09-02 18:07:02 +05:30
2015-12-23 02:04:40 +05:30
%h4 #{pluralize @message.diffs_count, "changed file"}:
2015-04-26 12:48:37 +05:30
%ul
2015-12-23 02:04:40 +05:30
- @message.diffs.each_with_index do |diff, i|
2015-04-26 12:48:37 +05:30
%li.file-stats
2015-12-23 02:04:40 +05:30
%a{href: "#{@message.target_url if @message.disable_diffs?}#diff-#{i}" }
2015-04-26 12:48:37 +05:30
- if diff.deleted_file
%span.deleted-file
−
= diff.old_path
- elsif diff.renamed_file
= diff.old_path
→
= diff.new_path
- elsif diff.new_file
%span.new-file
2015-09-11 14:41:01 +05:30
+
2015-04-26 12:48:37 +05:30
= diff.new_path
- else
= diff.new_path
2015-12-23 02:04:40 +05:30
- unless @message.disable_diffs?
2015-04-26 12:48:37 +05:30
%h4 Changes:
2015-12-23 02:04:40 +05:30
- @message.diffs.each_with_index do |diff, i|
2015-04-26 12:48:37 +05:30
%li{id: "diff-#{i}"}
2015-12-23 02:04:40 +05:30
%a{href: @message.target_url + "#diff-#{i}"}
2015-04-26 12:48:37 +05:30
- if diff.deleted_file
%strong
= diff.old_path
deleted
- elsif diff.renamed_file
%strong
= diff.old_path
→
%strong
= diff.new_path
- else
%strong
= diff.new_path
%hr
= color_email_diff(diff.diff)
%br
2015-12-23 02:04:40 +05:30
- if @message.compare_timeout
2015-04-26 12:48:37 +05:30
%h5 Huge diff. To prevent performance issues changes are hidden