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)
|
2017-08-17 09:42:04 +00:00
|
|
|
- breadcrumb_title @tag.name
|
2017-11-02 22:30:06 +00:00
|
|
|
- page_title @tag.name, s_('TagsPage|Tags')
|
2015-11-05 11:15:25 +00:00
|
|
|
|
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
|
2017-05-11 15:47:44 +00:00
|
|
|
%span.item-title.ref-name
|
|
|
|
= icon('tag')
|
|
|
|
= @tag.name
|
2017-03-31 18:30:33 +00:00
|
|
|
- if protected_tag?(@project, @tag)
|
2018-04-13 19:36:22 +00:00
|
|
|
%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
|
|
|
|
2019-06-06 14:44:13 +00:00
|
|
|
.nav-controls
|
2019-06-19 07:08:56 +00:00
|
|
|
- if can?(current_user, :admin_tag, @project)
|
2019-01-25 09:39:06 +00:00
|
|
|
= 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
|
2019-02-28 09:25:23 +00:00
|
|
|
= 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')
|
2016-12-20 22:58:04 +00:00
|
|
|
.btn-container.controls-item
|
|
|
|
= render 'projects/buttons/download', project: @project, ref: @tag.name
|
2019-06-19 07:08:56 +00:00
|
|
|
- if can?(current_user, :admin_tag, @project)
|
2016-12-20 22:58:04 +00:00
|
|
|
.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-12-31 08:10:35 +00:00
|
|
|
|
2016-07-18 20:08:58 +00:00
|
|
|
- if @tag.message.present?
|
2016-12-20 22:58:04 +00:00
|
|
|
%pre.wrap
|
2016-07-18 20:08:58 +00:00
|
|
|
= strip_gpg_signature(@tag.message)
|
2015-11-05 17:37:31 +00:00
|
|
|
|
2016-07-18 20:08:58 +00:00
|
|
|
.append-bottom-default.prepend-top-default
|
|
|
|
- if @release.description.present?
|
2019-03-23 13:09:14 +00:00
|
|
|
.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.')
|