Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_tag.html.haml « tags « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dba9b20fcff410766fcf28dc735dc4c07681e57b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
- commit = @repository.commit(tag.dereferenced_target)
- release = @releases.find { |release| release.tag == tag.name }
%li.flex-row.allow-wrap
  .row-main-content
    = sprite_icon('tag')
    = link_to tag.name, project_tag_path(@project, tag.name), class: 'item-title ref-name'

    - if protected_tag?(@project, tag)
      %span.badge.badge-success.gl-ml-2
        = s_('TagsPage|protected')

    - if tag.message.present?
       
      = strip_signature(tag.message)

    - if commit
      .block-truncated
        = render 'projects/branches/commit', commit: commit, project: @project
    - else
      %p
        = s_("TagsPage|Can't find HEAD commit for this tag")

    - if release
      .text-secondary
        = sprite_icon("rocket", size: 12)
        = _("Release")
        = link_to release.name, project_releases_path(@project, anchor: release.tag), class: 'tag-release-link'
      - if release.description.present?
        .md.gl-mt-3
          = markdown_field(release, :description)

  .row-fixed-content.controls.flex-row
    - if tag.has_signature?
      = render partial: 'projects/commit/signature', object: tag.signature

    = render 'projects/buttons/download', project: @project, ref: tag.name, pipeline: @tags_pipelines[tag.name]

    - if can?(current_user, :admin_tag, @project)
      = 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
        = sprite_icon("pencil")
      = 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
        = sprite_icon("remove")