diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-08-31 13:06:23 +0200 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-14 10:15:14 +0200 |
commit | 1da0c0b6e43198074e775549011b73533fd3f64a (patch) | |
tree | 560ec5f5359b6fb13c4cec31e3bfc691ed44ac11 /app/views/projects/compare | |
parent | b3a88a0fdc062f11d2580e361296865acdba4973 (diff) | |
download | gitlab-ce-1da0c0b6e43198074e775549011b73533fd3f64a.tar.gz |
Factor out commit list from compare and new MR.
Diffstat (limited to 'app/views/projects/compare')
-rw-r--r-- | app/views/projects/compare/show.html.haml | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/app/views/projects/compare/show.html.haml b/app/views/projects/compare/show.html.haml index 45269e662cd..214b5bd337b 100644 --- a/app/views/projects/compare/show.html.haml +++ b/app/views/projects/compare/show.html.haml @@ -6,20 +6,8 @@ = render "form" - if @commits.present? - %div.panel.panel-default - .panel-heading - Commits (#{@commits.count}) - - if @commits.size > MergeRequestDiff::COMMITS_SAFE_SIZE - %ul.well-list - - Commit.decorate(@commits.first(MergeRequestDiff::COMMITS_SAFE_SIZE)).each do |commit| - = 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 - %ul.well-list= render Commit.decorate(@commits), project: @project - + = render "projects/commits/commit_list" = render "projects/diffs/diffs", diffs: @diffs, project: @project - - else .light-well .center |