2019-11-25 12:06:13 +00:00
|
|
|
- user = user_email = nil
|
|
|
|
- if @tag.tagger
|
|
|
|
- user_email = @tag.tagger.email
|
|
|
|
- user = User.find_by_any_email(user_email)
|
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
|
|
|
|
2019-09-03 09:03:35 +00:00
|
|
|
.top-area.multi-line.flex-wrap
|
|
|
|
.nav-text
|
|
|
|
.title
|
2020-06-22 09:08:42 +00:00
|
|
|
%span.item-title.ref-name{ data: { qa_selector: 'tag_name_content' } }
|
2019-09-03 09:03:35 +00:00
|
|
|
= icon('tag')
|
|
|
|
= @tag.name
|
|
|
|
- if protected_tag?(@project, @tag)
|
|
|
|
%span.badge.badge-success
|
|
|
|
= s_('TagsPage|protected')
|
2019-11-25 12:06:13 +00:00
|
|
|
|
|
|
|
- if user
|
|
|
|
= link_to user_path(user) do
|
|
|
|
%div
|
|
|
|
= user_avatar_without_link(user: user, size: 32, css_class: "mt-1 mb-1")
|
|
|
|
|
|
|
|
%div
|
|
|
|
%strong= user.name
|
|
|
|
%div= user.to_reference
|
|
|
|
|
|
|
|
- elsif user_email
|
|
|
|
= mail_to user_email do
|
|
|
|
%div
|
|
|
|
= user_avatar_without_link(user_email: user_email, size: 32, css_class: "mt-1 mb-1")
|
|
|
|
|
|
|
|
%div{ :class => "clearfix" }
|
|
|
|
%strong= user_email
|
|
|
|
|
2019-09-03 09:03:35 +00:00
|
|
|
- if @commit
|
|
|
|
= render 'projects/branches/commit', commit: @commit, project: @project
|
|
|
|
- else
|
|
|
|
= s_("TagsPage|Can't find HEAD commit for this tag")
|
2016-12-05 18:55:57 +00:00
|
|
|
|
2019-09-03 09:03:35 +00:00
|
|
|
.nav-controls
|
2020-05-06 21:10:00 +00:00
|
|
|
- if @tag.has_signature?
|
|
|
|
= render partial: 'projects/commit/signature', object: @tag.signature
|
2019-09-03 09:03:35 +00:00
|
|
|
- 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
|
|
|
|
= icon("pencil")
|
|
|
|
= link_to project_tree_path(@project, @tag.name), class: 'btn controls-item has-tooltip', title: s_('TagsPage|Browse files') do
|
|
|
|
= sprite_icon('folder-open')
|
|
|
|
= link_to project_commits_path(@project, @tag.name), class: 'btn controls-item has-tooltip', title: s_('TagsPage|Browse commits') do
|
|
|
|
= 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
|
|
|
|
= 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
|
|
|
|
%i.fa.fa-trash-o
|
2016-12-31 08:10:35 +00:00
|
|
|
|
2019-09-03 09:03:35 +00:00
|
|
|
- if @tag.message.present?
|
2020-06-22 09:08:42 +00:00
|
|
|
%pre.wrap{ data: { qa_selector: 'tag_message_content' } }
|
2019-11-25 12:06:13 +00:00
|
|
|
= strip_signature(@tag.message)
|
2015-11-05 17:37:31 +00:00
|
|
|
|
2020-06-22 15:09:27 +00:00
|
|
|
.gl-mb-3.prepend-top-default
|
2019-09-03 09:03:35 +00:00
|
|
|
- if @release.description.present?
|
2020-06-22 09:08:42 +00:00
|
|
|
.description.md{ data: { qa_selector: 'tag_release_notes_content' } }
|
2019-09-03 09:03:35 +00:00
|
|
|
= markdown_field(@release, :description)
|
|
|
|
- else
|
|
|
|
= s_('TagsPage|This tag has no release notes.')
|