diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-20 10:19:00 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-20 10:19:00 +0200 |
commit | 6347e9a60bd3c00a6a6616756ecc398079775fb2 (patch) | |
tree | 1816cf63f930793ee615d0e77599ab2ac15699dd /app/views/compare | |
parent | 72db22d385ad98eea44bdc880ca08c95f867241e (diff) | |
download | gitlab-ce-6347e9a60bd3c00a6a6616756ecc398079775fb2.tar.gz |
Dont load diff in compare over 100 commits
Diffstat (limited to 'app/views/compare')
-rw-r--r-- | app/views/compare/show.html.haml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/compare/show.html.haml b/app/views/compare/show.html.haml index d8ea3727d57..476be2550af 100644 --- a/app/views/compare/show.html.haml +++ b/app/views/compare/show.html.haml @@ -6,6 +6,12 @@ = render "form" +- if @commits.size > 100 + .alert.alert-block + %p + %strong Warning! This comparison include 100+ commits. + %p To prevent performance issue we dont show diff information. + - if @commits.present? %div.ui-box %h5.title |