| ... | @@ -11,7 +11,8 @@ |
... | @@ -11,7 +11,8 @@ |
|
|
.pull-right
|
|
.pull-right
|
|
|
- if can?(current_user, :download_code, @project)
|
|
- if can?(current_user, :download_code, @project)
|
|
|
= render 'projects/repositories/download_archive', ref: branch.name, btn_class: 'grouped btn-group-small'
|
|
= render 'projects/repositories/download_archive', ref: branch.name, btn_class: 'grouped btn-group-small'
|
|
|
= link_to project_compare_index_path(@project, from: branch.name, to: branch.name), class: 'btn grouped btn-small', title: "Compare" do
|
|
- if branch.name != @repository.root_ref
|
|
|
|
= link_to project_compare_index_path(@project, from: @repository.root_ref, to: branch.name), class: 'btn grouped btn-small', method: :post, title: "Compare" do
|
|
|
%i.icon-copy
|
|
%i.icon-copy
|
|
|
Compare
|
|
Compare
|
|
|
|
|
|
| ... | |
... | |
| ... | | ... | |