Satisfy Rubocop
This commit is contained in:
parent
d9c82d679f
commit
0ac57a540d
3 changed files with 4 additions and 4 deletions
|
@ -38,7 +38,7 @@ module BlobHelper
|
|||
link_opts)
|
||||
|
||||
if !on_top_of_branch?
|
||||
button_tag "Edit", class: "btn btn-default disabled has_tooltip", title: "You can only edit files when you are on a branch", data: {container: 'body'}
|
||||
button_tag "Edit", class: "btn btn-default disabled has_tooltip", title: "You can only edit files when you are on a branch", data: { container: 'body' }
|
||||
elsif can_edit_blob?(blob)
|
||||
link_to "Edit", edit_path, class: 'btn btn-small'
|
||||
elsif can?(current_user, :fork_project, project)
|
||||
|
@ -62,7 +62,7 @@ module BlobHelper
|
|||
return unless blob
|
||||
|
||||
if !on_top_of_branch?
|
||||
button_tag label, class: "btn btn-#{btn_class} disabled has_tooltip", title: "You can only #{action} files when you are on a branch", data: {container: 'body'}
|
||||
button_tag label, class: "btn btn-#{btn_class} disabled has_tooltip", title: "You can only #{action} files when you are on a branch", data: { container: 'body' }
|
||||
elsif can_edit_blob?(blob)
|
||||
button_tag label, class: "btn btn-#{btn_class}", 'data-target' => "#modal-#{modal_type}-blob", 'data-toggle' => 'modal'
|
||||
elsif can?(current_user, :fork_project, project)
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
- if merge_request.open? && merge_request.broken?
|
||||
%li
|
||||
= link_to merge_request_path(merge_request), class: "has_tooltip", title: "Cannot be merged automatically", data: {container: 'body'} do
|
||||
= link_to merge_request_path(merge_request), class: "has_tooltip", title: "Cannot be merged automatically", data: { container: 'body' } do
|
||||
= icon('exclamation-triangle')
|
||||
|
||||
- if merge_request.assignee
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
- if current_user
|
||||
%li
|
||||
- if !on_top_of_branch?
|
||||
%span.btn.btn-sm.add-to-tree.disabled.has_tooltip{title: "You can only add files when you are on a branch", data: {container: 'body'}}
|
||||
%span.btn.btn-sm.add-to-tree.disabled.has_tooltip{title: "You can only add files when you are on a branch", data: { container: 'body' }}
|
||||
= icon('plus')
|
||||
- elsif can_edit_tree?
|
||||
%span.dropdown
|
||||
|
|
Loading…
Reference in a new issue