Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-08-31 15:06:23 +0400
committerCiro Santilli <ciro.santilli@gmail.com>2014-09-14 12:15:14 +0400
commit1da0c0b6e43198074e775549011b73533fd3f64a (patch)
tree560ec5f5359b6fb13c4cec31e3bfc691ed44ac11 /app/views/projects/compare
parentb3a88a0fdc062f11d2580e361296865acdba4973 (diff)
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.haml14
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