summaryrefslogtreecommitdiff
path: root/app/views/projects/tags/index.html.haml
blob: dc6ece30dd292eb551f96e66f83ece6d42bd5141 (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
- page_title "Tags"
= render "projects/commits/header_title"
= render "projects/commits/head"

.row-content-block
  - if can? current_user, :push_code, @project
    .pull-right
      = link_to new_namespace_project_tag_path(@project.namespace, @project), class: 'btn btn-create new-tag-btn' do
        = icon('plus')
        New tag
  .oneline
    Tags give the ability to mark specific points in history as being important

.tags
  - unless @tags.empty?
    %ul.content-list
      - @tags.each do |tag|
        = render 'tag', tag: @repository.find_tag(tag)

    = paginate @tags, theme: 'gitlab'

  - else
    .nothing-here-block
      Repository has no tags yet.
      %br
      %small
        Use git tag command to add a new one:
        %br
        %span.monospace git tag -a v1.4 -m 'version 1.4'