2014-08-31 11:06:23 +00:00
|
|
|
%div.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
Commits (#{@commits.count})
|
|
|
|
- if @commits.size > MergeRequestDiff::COMMITS_SAFE_SIZE
|
|
|
|
%ul.well-list
|
2015-04-21 13:09:15 +00:00
|
|
|
- Commit.decorate(@commits.first(MergeRequestDiff::COMMITS_SAFE_SIZE), @project).each do |commit|
|
2014-08-31 11:06:23 +00:00
|
|
|
= render "projects/commits/inline_commit", commit: commit, project: @project
|
|
|
|
%li.warning-row.unstyled
|
|
|
|
other #{@commits.size - MergeRequestDiff::COMMITS_SAFE_SIZE} commits hidden to prevent performance issues.
|
|
|
|
- else
|
2015-04-21 13:09:15 +00:00
|
|
|
%ul.well-list= render Commit.decorate(@commits, @project), project: @project
|