2013-12-17 09:20:45 -05:00
|
|
|
%h3 #{@author.name} pushed to #{@branch} at #{@project.name_with_namespace}
|
2013-12-17 08:30:15 -05:00
|
|
|
|
|
|
|
%h4 Commits:
|
|
|
|
|
|
|
|
%ul
|
|
|
|
- @commits.each do |commit|
|
|
|
|
%li
|
|
|
|
#{commit.short_id} - #{commit.title}
|
|
|
|
|
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-03-26 08:51:28 -04:00
|
|
|
%h5 To prevent performance issues changes are hidden
|
2014-02-12 05:56:13 -05:00
|
|
|
- elsif @compare.commits_over_limit?
|
2014-03-26 08:51:28 -04:00
|
|
|
%h5 Changes are not shown due to large amount of commits
|