2014-09-30 05:28:43 -04:00
|
|
|
%h3 #{@author.name} pushed to #{@branch} at #{link_to @project.name_with_namespace, project_url(@project)}
|
2013-12-17 08:30:15 -05:00
|
|
|
|
|
|
|
%h4 Commits:
|
|
|
|
|
|
|
|
%ul
|
|
|
|
- @commits.each do |commit|
|
|
|
|
%li
|
2014-09-30 05:28:43 -04:00
|
|
|
%strong #{link_to commit.short_id, project_commit_url(@project, commit)}
|
2014-07-04 10:42:11 -04:00
|
|
|
%span by #{commit.author_name}
|
|
|
|
%pre #{commit.safe_message}
|
2013-12-17 08:30:15 -05:00
|
|
|
|
2014-03-26 08:51:28 -04:00
|
|
|
%h4 Changes:
|
2013-12-17 08:30:15 -05:00
|
|
|
- @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
|
2014-02-12 05:56:13 -05:00
|
|
|
|
|
|
|
- if @compare.timeout
|
2014-07-29 08:18:11 -04:00
|
|
|
%h5 Huge diff. To prevent performance issues changes are hidden
|