2016-07-18 20:08:58 +00:00
|
|
|
- @no_container = true
|
2017-08-17 09:42:04 +00:00
|
|
|
- add_to_breadcrumbs "Tags", project_tags_path(@project)
|
|
|
|
- breadcrumb_title @tag.name
|
2015-11-05 12:49:34 +00:00
|
|
|
- page_title @tag.name, "Tags"
|
2015-11-05 11:15:25 +00:00
|
|
|
|
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
|
2017-05-11 15:47:44 +00:00
|
|
|
%span.item-title.ref-name
|
|
|
|
= icon('tag')
|
|
|
|
= @tag.name
|
2017-03-31 18:30:33 +00:00
|
|
|
- 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
|
|
|
|
|
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)
|
2017-06-29 17:06:35 +00:00
|
|
|
= 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")
|
2017-06-29 17:06:35 +00:00
|
|
|
= 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')
|
2017-06-29 17:06:35 +00:00
|
|
|
= 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')
|
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
|
2017-06-29 17:06:35 +00:00
|
|
|
= 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-12-31 08:10:35 +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
|
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.
|