|
1 | 1 | %div
|
2 |
| - %p.slead |
3 |
| - Fill input field with commit id like |
4 |
| - %code.label_branch 4eedf23 |
5 |
| - or branch/tag name like |
6 |
| - %code.label_branch master |
7 |
| - and press compare button for commits list, code diff. |
| 2 | + - unless params[:to] |
| 3 | + %p.slead |
| 4 | + Fill input field with commit id like |
| 5 | + %code.label_branch 4eedf23 |
| 6 | + or branch/tag name like |
| 7 | + %code.label_branch master |
| 8 | + and press compare button for commits list, code diff. |
8 | 9 |
|
9 |
| - %br |
| 10 | + %br |
10 | 11 |
|
11 | 12 | = form_tag project_compare_index_path(@project), method: :post do
|
12 | 13 | .clearfix
|
13 |
| - = text_field_tag :from, params[:from], placeholder: "master", class: "xlarge" |
14 |
| - = "..." |
15 |
| - = text_field_tag :to, params[:to], placeholder: "aa8b4ef", class: "xlarge" |
16 |
| - - if params[:to] && params[:from] |
17 |
| - = link_to 'switch', {from: params[:to], to: params[:from]}, {class: 'commits-compare-switch has_tooltip', title: 'Switch base of comparison'} |
| 14 | + .pull-left |
| 15 | + - if params[:to] && params[:from] |
| 16 | + = link_to 'switch', {from: params[:to], to: params[:from]}, {class: 'commits-compare-switch has_tooltip', title: 'Switch base of comparison'} |
| 17 | + = text_field_tag :from, params[:from], placeholder: "master", class: "xlarge" |
| 18 | + = "..." |
| 19 | + = text_field_tag :to, params[:to], placeholder: "aa8b4ef", class: "xlarge" |
| 20 | + .pull-left |
| 21 | + |
| 22 | + = submit_tag "Compare", class: "btn primary wide commits-compare-btn" |
18 | 23 | - if @refs_are_same
|
19 | 24 | .alert
|
20 | 25 | %span Refs are the same
|
21 |
| - .actions |
22 |
| - = submit_tag "Compare", class: "btn primary wide commits-compare-btn" |
23 | 26 |
|
24 | 27 |
|
25 |
| - |
| 28 | + |
26 | 29 | :javascript
|
27 | 30 | $(function() {
|
28 | 31 | var availableTags = #{@project.ref_names.to_json};
|
|
0 commit comments