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

42 lines
1.8 KiB
Plaintext
Raw Normal View History

2016-07-18 20:08:58 +00:00
- @no_container = true
- page_title @tag.name, "Tags"
= render "projects/commits/head"
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= @tag.name
- 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_namespace_project_tag_release_path(@project.namespace, @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 namespace_project_tree_path(@project.namespace, @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 namespace_project_commits_path(@project.namespace, @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
2016-12-05 18:55:57 +00:00
= link_to namespace_project_tag_path(@project.namespace, @project, @tag.name), class: 'btn btn-remove remove-row has-tooltip', 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
= preserve do
= markdown_field(@release, :description)
2016-07-18 20:08:58 +00:00
- else
This tag has no release notes.