diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-02 15:00:22 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-02 15:00:22 +0100 |
commit | ebc5a62bc082df08e5b5508a3dd9322b2e8f2bcf (patch) | |
tree | 1c23d782f99744e45d9cbf2c7882db36e1554eb0 | |
parent | 67c74071a8b63cf905e6c65e9818317a99db9105 (diff) | |
download | gitlab-ce-ebc5a62bc082df08e5b5508a3dd9322b2e8f2bcf.tar.gz |
Add tag delete button
-rw-r--r-- | app/views/projects/tags/_tag.html.haml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/projects/tags/_tag.html.haml b/app/views/projects/tags/_tag.html.haml index 00c0b0b934c..28b706c5c7e 100644 --- a/app/views/projects/tags/_tag.html.haml +++ b/app/views/projects/tags/_tag.html.haml @@ -17,6 +17,11 @@ - if can?(current_user, :push_code, @project) = link_to edit_namespace_project_tag_release_path(@project.namespace, @project, tag.name), class: 'btn-grouped btn has_tooltip', title: "Edit release notes" do = icon("pencil") + + - if can?(current_user, :admin_project, @project) + = link_to namespace_project_tag_path(@project.namespace, @project, tag.name), class: 'btn btn-grouped btn-xs btn-remove remove-row has_tooltip', title: "Delete tag", method: :delete, data: { confirm: "Deleting the '#{tag.name}' tag cannot be undone. Are you sure?", container: 'body' }, remote: true do + = icon("trash-o") + - if commit = render 'projects/branches/commit', commit: commit, project: @project - else |