2015-11-05 11:15:25 +00:00
|
|
|
- page_title @release.tag, "Releases"
|
|
|
|
= 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")
|
|
|
|
.oneline Release notes for #{@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.middle-block.clearfix
|
|
|
|
= link_to namespace_project_tree_path(@project.namespace, @project, @tag.name), class: 'btn btn-grouped' do
|
|
|
|
Browse code
|
|
|
|
= link_to namespace_project_commits_path(@project.namespace, @project, @tag.name), class: 'btn btn-grouped' do
|
|
|
|
Commits
|
|
|
|
- if can? current_user, :download_code, @project
|
|
|
|
= render 'projects/repositories/download_archive', ref: @tag.name, btn_class: 'btn-grouped'
|
|
|
|
-#- if can?(current_user, :admin_project, @project)
|
|
|
|
= 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?'}, remote: true do
|
|
|
|
%i.fa.fa-trash-o
|
|
|
|
|
|
|
|
.gray-content-block.second-block
|
|
|
|
- if @commit
|
|
|
|
= render 'projects/commits/commit', commit: @commit, project: @project
|
|
|
|
- else
|
|
|
|
Cant find HEAD commit for this tag
|