summaryrefslogtreecommitdiff
path: root/app/views/projects/tags/show.html.haml
blob: fad3c5c2173f31b39ee8459af0f3d205d9d57ca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
- @no_container = true
- page_title @tag.name, "Tags"
= render "projects/commits/head"

%div{ class: container_class }
  .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

    .nav-controls.controls-flex
      - if can?(current_user, :push_code, @project)
        = link_to edit_namespace_project_tag_release_path(@project.namespace, @project, @tag.name), class: 'btn controls-item has-tooltip', title: 'Edit release notes' do
          = icon("pencil")
      = link_to namespace_project_tree_path(@project.namespace, @project, @tag.name), class: 'btn controls-item has-tooltip', title: 'Browse files' do
        = icon('files-o')
      = link_to namespace_project_commits_path(@project.namespace, @project, @tag.name), class: 'btn controls-item has-tooltip', title: 'Browse commits' do
        = icon('history')
      .btn-container.controls-item
        = render 'projects/buttons/download', project: @project, ref: @tag.name
      - if can?(current_user, :admin_project, @project)
        .btn-container.controls-item-full
          = 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
            %i.fa.fa-trash-o

    - if @tag.message.present?
      %pre.wrap
        = strip_gpg_signature(@tag.message)

  .append-bottom-default.prepend-top-default
    - if @release.description.present?
      .description
        .wiki
          = preserve do
            = markdown_field(@release, :description)
    - else
      This tag has no release notes.