debian-mirror-gitlab/app/views/projects/tags/show.html.haml

47 lines
2.1 KiB
Text
Raw Normal View History

2016-08-24 12:49:21 +05:30
- @no_container = true
2018-03-17 18:26:18 +05:30
- add_to_breadcrumbs s_('TagsPage|Tags'), project_tags_path(@project)
- breadcrumb_title @tag.name
- page_title @tag.name, s_('TagsPage|Tags')
2015-11-26 14:37:03 +05:30
2016-08-24 12:49:21 +05:30
%div{ class: container_class }
2017-08-17 22:00:37 +05:30
.top-area.multi-line
.nav-text
2016-08-24 12:49:21 +05:30
.title
2017-09-10 17:25:29 +05:30
%span.item-title.ref-name
= icon('tag')
= @tag.name
2017-08-17 22:00:37 +05:30
- if protected_tag?(@project, @tag)
2018-11-08 19:23:39 +05:30
%span.badge.badge-success
2018-03-17 18:26:18 +05:30
= s_('TagsPage|protected')
2016-08-24 12:49:21 +05:30
- if @commit
= render 'projects/branches/commit', commit: @commit, project: @project
- else
2018-03-17 18:26:18 +05:30
= s_("TagsPage|Can't find HEAD commit for this tag")
2017-08-17 22:00:37 +05:30
.nav-controls.controls-flex
- if can?(current_user, :push_code, @project)
2018-03-17 18:26:18 +05:30
= link_to edit_project_tag_release_path(@project, @tag.name), class: 'btn controls-item has-tooltip', title: s_('TagsPage|Edit release notes') do
2017-08-17 22:00:37 +05:30
= icon("pencil")
2018-03-17 18:26:18 +05:30
= link_to project_tree_path(@project, @tag.name), class: 'btn controls-item has-tooltip', title: s_('TagsPage|Browse files') do
2017-08-17 22:00:37 +05:30
= icon('files-o')
2018-03-17 18:26:18 +05:30
= link_to project_commits_path(@project, @tag.name), class: 'btn controls-item has-tooltip', title: s_('TagsPage|Browse commits') do
2017-08-17 22:00:37 +05:30
= icon('history')
.btn-container.controls-item
= render 'projects/buttons/download', project: @project, ref: @tag.name
2018-05-09 12:01:36 +05:30
- if can?(current_user, :push_code, @project) && can?(current_user, :admin_project, @project)
2017-08-17 22:00:37 +05:30
.btn-container.controls-item-full
2018-03-17 18:26:18 +05:30
= link_to project_tag_path(@project, @tag.name), class: "btn btn-remove remove-row has-tooltip #{protected_tag?(@project, @tag) ? 'disabled' : ''}", title: s_('TagsPage|Delete tag'), method: :delete, data: { confirm: s_('TagsPage|Deleting the %{tag_name} tag cannot be undone. Are you sure?') % { tag_name: @tag.name } } do
2017-08-17 22:00:37 +05:30
%i.fa.fa-trash-o
2016-08-24 12:49:21 +05:30
- if @tag.message.present?
2017-08-17 22:00:37 +05:30
%pre.wrap
2016-08-24 12:49:21 +05:30
= strip_gpg_signature(@tag.message)
2015-11-26 14:37:03 +05:30
2016-08-24 12:49:21 +05:30
.append-bottom-default.prepend-top-default
- if @release.description.present?
.description
.wiki
2017-08-17 22:00:37 +05:30
= markdown_field(@release, :description)
2016-08-24 12:49:21 +05:30
- else
2018-03-17 18:26:18 +05:30
= s_('TagsPage|This tag has no release notes.')