show.html.haml 726 字节
Newer Older
1
- @no_container = true
D
Douwe Maan 已提交
2
- page_title "#{params[:from]}...#{params[:to]}"
3
= render "projects/commits/head"
D
Dmitriy Zaporozhets 已提交
4

V
Valery Sizov 已提交
5
%div{ class: container_class }
6 7
  .sub-header-block.no-bottom-space
    = render "form"
D
Dmitriy Zaporozhets 已提交
8

9
  - if @commits.present?
10
    = render "projects/commits/commit_list"
11
    = render "projects/diffs/diffs", diffs: @diffs, environment: @environment
12 13 14 15 16 17 18
  - else
    .light-well
      .center
        %h4
          There isn't anything to compare.
        %p.slead
          - if params[:to] == params[:from]
19
            %span.label-branch= params[:from]
20
            and
21
            %span.label-branch= params[:to]
22 23 24
            are the same.
          - else
            You'll need to use different branch names to get a valid comparison.