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

47 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 }
2021-01-29 00:20:46 +05:30
- commit_status = @tag_pipeline_statuses[tag.name] unless @tag_pipeline_statuses.nil?
2021-01-03 14:25:43 +05:30
2021-04-17 20:07:23 +05:30
%li.flex-row.js-tag-list{ class: "gl-white-space-normal!" }
2020-01-01 13:55:28 +05:30
.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)
2021-06-08 01:23:25 +05:30
%span.badge.badge-success.gl-ml-2.gl-badge.sm.badge-pill
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")
2021-01-03 14:25:43 +05:30
= link_to release.name, project_releases_path(@project, anchor: release.tag), class: 'gl-text-blue-600!'
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
2021-01-29 00:20:46 +05:30
- if commit_status
= render 'ci/status/icon', size: 24, status: commit_status, option_css_classes: 'gl-display-inline-flex gl-vertical-align-middle gl-mr-5'
- elsif @tag_pipeline_statuses && @tag_pipeline_statuses.any?
.gl-display-inline-flex.gl-vertical-align-middle.gl-mr-5
%svg.s24
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)
2021-03-11 19:13:27 +05:30
= link_to edit_project_tag_release_path(@project, tag.name), class: 'btn gl-button btn-default btn-icon btn-edit has-tooltip', title: s_('TagsPage|Edit release notes'), data: { container: "body" } do
2021-06-08 01:23:25 +05:30
= sprite_icon('pencil', css_class: 'gl-icon')
2021-01-03 14:25:43 +05:30
= render 'projects/buttons/remove_tag', project: @project, tag: tag