2016-07-18 20:08:58 +00:00
- @no_container = true
2015-11-05 12:49:34 +00:00
- page_title @tag.name, "Tags"
2015-11-05 11:15:25 +00:00
= 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
2016-12-20 22:58:04 +00:00
.nav-controls.controls-flex
2016-07-18 20:08:58 +00:00
- if can?(current_user, :push_code, @project)
2016-12-20 22:58:04 +00:00
= 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")
2016-12-20 22:58:04 +00:00
= 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')
2016-12-20 22:58:04 +00:00
= 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')
2016-12-20 22:58:04 +00:00
.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)
2016-12-20 22:58:04 +00:00
.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-12-20 22:58:04 +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?
.description
.wiki
= preserve do
2016-10-06 22:01:42 +00:00
= markdown_field(@release, :description)
2016-07-18 20:08:58 +00:00
- else
This tag has no release notes.