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

47 lines
1.9 KiB
Plaintext
Raw Normal View History

2016-07-18 20:08:58 +00:00
- @no_container = true
- add_to_breadcrumbs "Tags", project_tags_path(@project)
- breadcrumb_title @tag.name
- page_title @tag.name, "Tags"
2016-07-18 20:08:58 +00:00
%div{ class: container_class }
2016-12-05 18:55:57 +00:00
.top-area.multi-line
.nav-text
.title
%span.item-title.ref-name
= icon('tag')
= @tag.name
- if protected_tag?(@project, @tag)
%span.label.label-success
protected
2016-12-05 18:55:57 +00:00
- if @commit
= render 'projects/branches/commit', commit: @commit, project: @project
- else
Cant find HEAD commit for this tag
.nav-controls.controls-flex
2016-07-18 20:08:58 +00:00
- if can?(current_user, :push_code, @project)
= link_to edit_project_tag_release_path(@project, @tag.name), class: 'btn controls-item has-tooltip', title: 'Edit release notes' do
2016-07-18 20:08:58 +00:00
= icon("pencil")
= link_to project_tree_path(@project, @tag.name), class: 'btn controls-item has-tooltip', title: 'Browse files' do
2016-07-18 20:08:58 +00:00
= icon('files-o')
= link_to project_commits_path(@project, @tag.name), class: 'btn controls-item has-tooltip', title: '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
2016-07-18 20:08:58 +00:00
- if can?(current_user, :admin_project, @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: "Delete tag", method: :delete, data: { confirm: "Deleting the '#{@tag.name}' tag cannot be undone. Are you sure?" } 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
.wiki
2017-04-28 14:57:17 +00:00
= markdown_field(@release, :description)
2016-07-18 20:08:58 +00:00
- else
This tag has no release notes.