debian-mirror-gitlab/app/views/projects/tags/_tag.html.haml

35 lines
1.4 KiB
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
- commit = @repository.commit(tag.target)
2015-11-26 14:37:03 +05:30
- release = @releases.find { |release| release.tag == tag.name }
2014-09-02 18:07:02 +05:30
%li
2015-09-25 12:07:36 +05:30
%div
2015-11-26 14:37:03 +05:30
= link_to namespace_project_tag_path(@project.namespace, @project, tag.name) do
%span.item-title
2015-11-26 14:37:03 +05:30
= icon('tag')
2015-09-25 12:07:36 +05:30
= tag.name
2015-04-26 12:48:37 +05:30
- if tag.message.present?
 
= strip_gpg_signature(tag.message)
2015-11-26 14:37:03 +05:30
2015-09-25 12:07:36 +05:30
.controls
2015-12-23 02:04:40 +05:30
- if can?(current_user, :download_code, @project)
2015-11-26 14:37:03 +05:30
= render 'projects/tags/download', ref: tag.name, project: @project
2014-09-02 18:07:02 +05:30
2015-12-23 02:04:40 +05:30
- if can?(current_user, :push_code, @project)
2016-06-22 15:30:34 +05:30
= 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
2015-12-23 02:04:40 +05:30
= icon("pencil")
- if can?(current_user, :admin_project, @project)
= link_to namespace_project_tag_path(@project.namespace, @project, tag.name), class: 'btn 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
2015-12-23 02:04:40 +05:30
= icon("trash-o")
2014-09-02 18:07:02 +05:30
- if commit
2015-09-25 12:07:36 +05:30
= render 'projects/branches/commit', commit: commit, project: @project
2014-09-02 18:07:02 +05:30
- else
%p
Cant find HEAD commit for this tag
2015-11-26 14:37:03 +05:30
- if release && release.description.present?
.description.prepend-top-default
.wiki
= preserve do
= markdown release.description