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

43 lines
1.9 KiB
Text
Raw Normal View History

2016-11-24 13:41:30 +05:30
- commit = @repository.commit(tag.dereferenced_target)
2015-11-26 14:37:03 +05:30
- release = @releases.find { |release| release.tag == tag.name }
2020-01-01 13:55:28 +05:30
%li.flex-row.allow-wrap
.row-main-content
2020-11-24 15:15:51 +05:30
= sprite_icon('tag')
= link_to tag.name, project_tag_path(@project, tag.name), class: 'item-title ref-name'
2017-08-17 22:00:37 +05:30
- if protected_tag?(@project, tag)
2020-06-23 00:09:42 +05:30
%span.badge.badge-success.gl-ml-2
2018-03-17 18:26:18 +05:30
= s_('TagsPage|protected')
2017-08-17 22:00:37 +05:30
2015-04-26 12:48:37 +05:30
- if tag.message.present?
 
2020-01-01 13:55:28 +05:30
= strip_signature(tag.message)
2015-11-26 14:37:03 +05:30
2017-08-17 22:00:37 +05:30
- if commit
.block-truncated
= render 'projects/branches/commit', commit: commit, project: @project
- else
%p
2018-03-17 18:26:18 +05:30
= s_("TagsPage|Can't find HEAD commit for this tag")
2019-12-21 20:55:43 +05:30
- if release
.text-secondary
2020-06-23 00:09:42 +05:30
= sprite_icon("rocket", size: 12)
2019-12-21 20:55:43 +05:30
= _("Release")
= link_to release.name, project_releases_path(@project, anchor: release.tag), class: 'tag-release-link'
- if release.description.present?
2020-07-28 23:09:34 +05:30
.md.gl-mt-3
2019-12-21 20:55:43 +05:30
= markdown_field(release, :description)
2014-09-02 18:07:02 +05:30
2018-03-17 18:26:18 +05:30
.row-fixed-content.controls.flex-row
2020-05-24 23:13:21 +05:30
- if tag.has_signature?
= render partial: 'projects/commit/signature', object: tag.signature
2017-08-17 22:00:37 +05:30
= render 'projects/buttons/download', project: @project, ref: tag.name, pipeline: @tags_pipelines[tag.name]
2015-12-23 02:04:40 +05:30
2019-09-30 21:07:59 +05:30
- if can?(current_user, :admin_tag, @project)
2019-02-15 15:39:39 +05:30
= link_to edit_project_tag_release_path(@project, tag.name), class: 'btn btn-edit has-tooltip', title: s_('TagsPage|Edit release notes'), data: { container: "body" } do
2020-10-24 23:57:45 +05:30
= sprite_icon("pencil")
2020-07-28 23:09:34 +05:30
= link_to project_tag_path(@project, tag.name), class: "btn btn-remove remove-row has-tooltip gl-ml-3 #{protected_tag?(@project, tag) ? 'disabled' : ''}", title: s_('TagsPage|Delete tag'), method: :delete, data: { confirm: s_('TagsPage|Deleting the %{tag_name} tag cannot be undone. Are you sure?') % { tag_name: tag.name }, container: 'body' }, remote: true do
2020-11-24 15:15:51 +05:30
= sprite_icon("remove")