diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-02-12 14:56:13 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-02-12 14:56:13 +0400 |
commit | 59769fdb940712737656a441ef43a1ad2dd47f4d (patch) | |
tree | 4b83d94a580c30c6dad324bdcac611491bac5bb5 /app/views/notify/repository_push_email.html.haml | |
parent | 0bcabdaf8330d0a260d95ee8435170fa7258eb98 (diff) |
Improve compare logic for EmailOnPush service
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/notify/repository_push_email.html.haml')
-rw-r--r-- | app/views/notify/repository_push_email.html.haml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/notify/repository_push_email.html.haml b/app/views/notify/repository_push_email.html.haml index d0b30c08338..ab0d6c653b9 100644 --- a/app/views/notify/repository_push_email.html.haml +++ b/app/views/notify/repository_push_email.html.haml @@ -21,3 +21,8 @@ %pre = diff.diff %br + +- if @compare.timeout + %h5 Huge diff. To prevent performance issues it was hidden +- elsif @compare.commits_over_limit? + %h5 Diff for big amount of commits is disabled |