Move branch list info tags out of main link
This commit is contained in:
parent
7128756d9f
commit
0827455710
1 changed files with 10 additions and 10 deletions
|
@ -3,17 +3,17 @@
|
|||
%div
|
||||
= link_to namespace_project_tree_path(@project.namespace, @project, branch.name) do
|
||||
%strong.str-truncated= branch.name
|
||||
|
||||
- if branch.name == @repository.root_ref
|
||||
%span.label.label-primary default
|
||||
- elsif @repository.merged_to_root_ref? branch.name
|
||||
%span.label.label-info.has_tooltip(title="Merged into #{@repository.root_ref}")
|
||||
merged
|
||||
|
||||
- if branch.name == @repository.root_ref
|
||||
%span.label.label-primary default
|
||||
- elsif @repository.merged_to_root_ref? branch.name
|
||||
%span.label.label-info.has_tooltip(title="Merged into #{@repository.root_ref}")
|
||||
merged
|
||||
|
||||
- if @project.protected_branch? branch.name
|
||||
%span.label.label-success
|
||||
%i.fa.fa-lock
|
||||
protected
|
||||
- if @project.protected_branch? branch.name
|
||||
%span.label.label-success
|
||||
%i.fa.fa-lock
|
||||
protected
|
||||
.controls.hidden-xs
|
||||
- if create_mr_button?(@repository.root_ref, branch.name)
|
||||
= link_to create_mr_path(@repository.root_ref, branch.name), class: 'btn btn-grouped btn-xs' do
|
||||
|
|
Loading…
Reference in a new issue