-#- if can?(current_user, :admin_project, @project)
= link_to namespace_project_tag_path(@project.namespace, @project, @tag.name), class: 'btn btn-remove remove-row grouped', method: :delete, data: { confirm: 'Removed tag cannot be restored. Are you sure?'}, remote: true do
%i.fa.fa-trash-o
-ifcan?(current_user,:admin_project,@project)
.pull-right
=link_tonamespace_project_tag_path(@project.namespace,@project,@tag.name),class: 'btn btn-remove remove-row grouped',method: :delete,data: {confirm: 'Removed tag cannot be restored. Are you sure?'},remote: truedo