diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-18 11:19:08 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-18 11:19:08 +0100 |
commit | 0ac57a540d245a24219519c4093d15b8ab2f536c (patch) | |
tree | 350906452678e2dd17ea1a022747302461e7ff83 /app/helpers/blob_helper.rb | |
parent | d9c82d679fd622aead99aeb90369361a05e02a36 (diff) | |
download | gitlab-ce-0ac57a540d245a24219519c4093d15b8ab2f536c.tar.gz |
Satisfy Rubocop
Diffstat (limited to 'app/helpers/blob_helper.rb')
-rw-r--r-- | app/helpers/blob_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/blob_helper.rb b/app/helpers/blob_helper.rb index 81b1f34cdf8..3368e77a0eb 100644 --- a/app/helpers/blob_helper.rb +++ b/app/helpers/blob_helper.rb @@ -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) |