gitlab-org--gitlab-foss/app/views/projects/tags/show.html.haml

46 lines
2.1 KiB
Plaintext
Raw Normal View History

2016-07-18 20:08:58 +00:00
- @no_container = true
2017-11-02 22:30:06 +00:00
- add_to_breadcrumbs s_('TagsPage|Tags'), project_tags_path(@project)
- breadcrumb_title @tag.name
2017-11-02 22:30:06 +00:00
- page_title @tag.name, s_('TagsPage|Tags')
2016-07-18 20:08:58 +00:00
%div{ class: container_class }
2019-07-24 21:27:01 +00:00
.top-area.multi-line.flex-wrap
2016-12-05 18:55:57 +00:00
.nav-text
.title
%span.item-title.ref-name
= icon('tag')
= @tag.name
- if protected_tag?(@project, @tag)
%span.badge.badge-success
2017-11-02 22:30:06 +00:00
= s_('TagsPage|protected')
2016-12-05 18:55:57 +00:00
- if @commit
= render 'projects/branches/commit', commit: @commit, project: @project
- else
2017-11-06 15:49:41 +00:00
= s_("TagsPage|Can't find HEAD commit for this tag")
2016-12-05 18:55:57 +00:00
.nav-controls
- if can?(current_user, :admin_tag, @project)
= link_to edit_project_tag_release_path(@project, @tag.name), class: 'btn btn-edit controls-item has-tooltip', title: s_('TagsPage|Edit release notes') do
2016-07-18 20:08:58 +00:00
= icon("pencil")
2017-11-02 22:30:06 +00:00
= link_to project_tree_path(@project, @tag.name), class: 'btn controls-item has-tooltip', title: s_('TagsPage|Browse files') do
= sprite_icon('folder-open')
2017-11-02 22:30:06 +00:00
= link_to project_commits_path(@project, @tag.name), class: 'btn controls-item has-tooltip', title: s_('TagsPage|Browse commits') do
2016-07-18 20:08:58 +00:00
= icon('history')
.btn-container.controls-item
= render 'projects/buttons/download', project: @project, ref: @tag.name
- if can?(current_user, :admin_tag, @project)
.btn-container.controls-item-full
2017-11-02 22:30:06 +00:00
= link_to project_tag_path(@project, @tag.name), class: "btn btn-remove remove-row has-tooltip #{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 } } do
2016-07-18 20:08:58 +00:00
%i.fa.fa-trash-o
2016-07-18 20:08:58 +00:00
- if @tag.message.present?
%pre.wrap
2016-07-18 20:08:58 +00:00
= strip_gpg_signature(@tag.message)
2016-07-18 20:08:58 +00:00
.append-bottom-default.prepend-top-default
- if @release.description.present?
.description.md
= markdown_field(@release, :description)
2016-07-18 20:08:58 +00:00
- else
2017-11-02 22:30:06 +00:00
= s_('TagsPage|This tag has no release notes.')