summaryrefslogtreecommitdiff
path: root/app/views/compare/show.html.haml
blob: 56c4a113ea0d0d3cf9d48569d9bae496e451c9f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
= render "commits/head"

%h3.page_title
  Compare View
%hr

= 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
      Commits (#{@commits.count})
    %ul.well-list= render Commit.decorate(@commits)

  - unless @diffs.empty?
    %h4 Diff
    = render "commits/diffs", diffs: @diffs