2016-09-27 03:07:31 +00:00
|
|
|
- commit = @repository.commit(tag.dereferenced_target)
|
2015-11-05 12:49:34 +00:00
|
|
|
- release = @releases.find { |release| release.tag == tag.name }
|
2016-12-20 22:58:04 +00:00
|
|
|
%li.flex-row
|
|
|
|
.row-main-content.str-truncated
|
2016-01-15 10:10:55 +00:00
|
|
|
= link_to namespace_project_tag_path(@project.namespace, @project, tag.name) do
|
2016-01-15 14:46:01 +00:00
|
|
|
%span.item-title
|
2016-01-15 10:10:55 +00:00
|
|
|
= icon('tag')
|
|
|
|
= tag.name
|
2014-09-25 02:30:06 +00:00
|
|
|
- if tag.message.present?
|
|
|
|
|
2014-11-18 16:00:38 +00:00
|
|
|
= strip_gpg_signature(tag.message)
|
2015-11-05 12:49:34 +00:00
|
|
|
|
2016-12-20 22:58:04 +00:00
|
|
|
- if commit
|
|
|
|
.block-truncated
|
|
|
|
= render 'projects/branches/commit', commit: commit, project: @project
|
|
|
|
- else
|
|
|
|
%p
|
|
|
|
Cant find HEAD commit for this tag
|
|
|
|
- if release && release.description.present?
|
|
|
|
.description.prepend-top-default
|
|
|
|
.wiki
|
|
|
|
= preserve do
|
|
|
|
= markdown_field(release, :description)
|
2014-02-03 16:13:24 +00:00
|
|
|
|
2016-12-20 22:58:04 +00:00
|
|
|
.row-fixed-content.controls
|
|
|
|
= render 'projects/buttons/download', project: @project, ref: tag.name
|
2015-12-02 14:00:22 +00:00
|
|
|
|
2016-12-20 22:58:04 +00:00
|
|
|
- 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", data: { container: "body" } do
|
|
|
|
= icon("pencil")
|
2015-12-02 14:00:22 +00:00
|
|
|
|
2016-12-20 22:58:04 +00:00
|
|
|
- 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
|
|
|
|
= icon("trash-o")
|