43 lines
1.6 KiB
Plaintext
43 lines
1.6 KiB
Plaintext
- page_title @tag.name, "Tags"
|
|
= render "projects/commits/header_title"
|
|
= render "projects/commits/head"
|
|
|
|
.gray-content-block
|
|
.pull-right
|
|
= link_to edit_namespace_project_tag_release_path(@project.namespace, @project, @tag.name), class: 'btn-grouped btn' do
|
|
= icon("pencil")
|
|
= link_to namespace_project_tree_path(@project.namespace, @project, @tag.name), class: 'btn btn-grouped' do
|
|
= icon('files-o')
|
|
= link_to namespace_project_commits_path(@project.namespace, @project, @tag.name), class: 'btn btn-grouped' do
|
|
= icon('history')
|
|
- if can? current_user, :download_code, @project
|
|
= render 'projects/tags/download', ref: @tag.name, project: @project
|
|
- if can?(current_user, :admin_project, @project)
|
|
.pull-right
|
|
= link_to namespace_project_tag_path(@project.namespace, @project, @tag.name), class: 'btn btn-remove remove-row grouped', method: :delete, data: { confirm: 'Removed tag cannot be restored. Are you sure?'} do
|
|
%i.fa.fa-trash-o
|
|
- if @tag.message.present?
|
|
.title
|
|
%strong= @tag.name
|
|
= strip_gpg_signature(@tag.message)
|
|
- else
|
|
.oneline
|
|
.title
|
|
%strong= @tag.name
|
|
|
|
.append-bottom-default.prepend-top-default
|
|
- if @release.description.present?
|
|
.description
|
|
.wiki
|
|
= preserve do
|
|
= markdown @release.description
|
|
- else
|
|
This tag has no release notes yet. Press edit button to add one
|
|
|
|
.gray-content-block.second-block
|
|
- if @commit
|
|
= render 'projects/commits/commit', commit: @commit, project: @project
|
|
- else
|
|
Cant find HEAD commit for this tag
|
|
|