diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2016-06-18 19:35:51 +0300 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2016-06-18 19:35:51 +0300 |
commit | a61550a814f976d0fc69cd95bcf5f5dba9ac68b9 (patch) | |
tree | 113b1c7b74b7d78317c23c37819890b2adba86f6 /app/views/projects/tags | |
parent | d0bca4b83ffdffddb8ce04b62d1d3ec071fa9fdd (diff) | |
parent | d7a8e5e2e4840f6d42fde29089a040007e18a13a (diff) |
Merge branch 'tags-edit-tooltip-placement' into 'master'
Fixed tooltip placement on edit tags button
## What does this MR do?
Moves the placement of the tooltip to the body so not to affect the movement of the button.
## Screenshots (if relevant)
Old:
![tooltip-old](/uploads/9ecb9bb919578881994698cd8b1d1826/tooltip-old.gif)
New:
![tooltip-new](/uploads/66f90cf95c2ee4001bfa3c65b9de8c05/tooltip-new.gif)
See merge request !4737
Diffstat (limited to 'app/views/projects/tags')
-rw-r--r-- | app/views/projects/tags/_tag.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/tags/_tag.html.haml b/app/views/projects/tags/_tag.html.haml index 844e1055810..2c11c0e5b21 100644 --- a/app/views/projects/tags/_tag.html.haml +++ b/app/views/projects/tags/_tag.html.haml @@ -15,7 +15,7 @@ = render 'projects/tags/download', ref: tag.name, project: @project - if can?(current_user, :push_code, @project) - = link_to edit_namespace_project_tag_release_path(@project.namespace, @project, tag.name), class: 'btn has-tooltip', title: "Edit release notes" do + = link_to edit_namespace_project_tag_release_path(@project.namespace, @project, tag.name), class: 'btn has-tooltip', title: "Edit release notes", data: { container: "body" } do = icon("pencil") - if can?(current_user, :admin_project, @project) |