_diffs.html.haml 694 Bytes
Newer Older
1 2 3
.prepend-top-20.append-bottom-20
  .pull-right
    .btn-group
4 5
      = inline_diff_btn
      = parallel_diff_btn
6
  = render 'projects/diffs/stats', diffs: diffs
7

Marin Jankovski's avatar
Marin Jankovski committed
8
- if show_diff_size_warning?(diffs)
9
  = render 'projects/diffs/warning', diffs: diffs
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
10 11

.files
12 13
  - safe_diff_files(diffs).each_with_index do |diff_file, index|
    = render 'projects/diffs/file', diff_file: diff_file, i: index, project: project
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
14 15 16 17 18 19

- if @diff_timeout
  .alert.alert-danger
    %h4
      Failed to collect changes
    %p
Ciro Santilli's avatar
Ciro Santilli committed
20
      Maybe diff is really big and operation failed with timeout. Try to get diff locally
21 22 23

:coffeescript
  $('.files .diff-header').stick_in_parent(recalc_every: 1, offset_top: $('.navbar').height())