summaryrefslogtreecommitdiff
path: root/app/views/projects/tags/_tag.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/tags/_tag.html.haml')
-rw-r--r--app/views/projects/tags/_tag.html.haml7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/projects/tags/_tag.html.haml b/app/views/projects/tags/_tag.html.haml
index e2c5178185e..00c0b0b934c 100644
--- a/app/views/projects/tags/_tag.html.haml
+++ b/app/views/projects/tags/_tag.html.haml
@@ -11,11 +11,12 @@
= strip_gpg_signature(tag.message)
.controls
- = link_to edit_namespace_project_tag_release_path(@project.namespace, @project, tag.name), class: 'btn-grouped btn' do
- = icon("pencil")
- - if can? current_user, :download_code, @project
+ - if can?(current_user, :download_code, @project)
= 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-grouped btn has_tooltip', title: "Edit release notes" do
+ = icon("pencil")
- if commit
= render 'projects/branches/commit', commit: commit, project: @project
- else