summaryrefslogtreecommitdiff
path: root/app/views/projects/compare
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-15 18:28:21 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-15 18:28:21 +0300
commitbe5b6db883ee634dc53e0a50ac57f424507d7a7d (patch)
tree9f4c78713e823b09b2d293f0a9dd7179358d8917 /app/views/projects/compare
parent3dc347a369783f2a1fec3b6cc724a9b41a43283c (diff)
downloadgitlab-ce-be5b6db883ee634dc53e0a50ac57f424507d7a7d.tar.gz
Refactor diff suppress logic and diff views
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/projects/compare')
-rw-r--r--app/views/projects/compare/show.html.haml13
1 files changed, 1 insertions, 12 deletions
diff --git a/app/views/projects/compare/show.html.haml b/app/views/projects/compare/show.html.haml
index b232d2a6b26..240bfe7484e 100644
--- a/app/views/projects/compare/show.html.haml
+++ b/app/views/projects/compare/show.html.haml
@@ -18,18 +18,7 @@
- else
%ul.well-list= render Commit.decorate(@commits), project: @project
- %h4 Changes
- - if @diffs.present?
- = render "projects/commits/diffs", diffs: @diffs, project: @project
- - elsif @commits.size > MergeRequestDiff::COMMITS_SAFE_SIZE
- .bs-callout.bs-callout-danger
- %h4 This comparison includes more than #{MergeRequestDiff::COMMITS_SAFE_SIZE} commits.
- %p To preserve performance the line changes are not shown.
- - elsif @timeout
- .bs-callout.bs-callout-danger
- %h4 Number of changed files for this comparison is extremely large.
- %p Use command line to browse through changes for this comparison.
-
+ = render "projects/commits/diffs", diffs: @diffs, project: @project
- else
.light-well