summaryrefslogtreecommitdiff
path: root/app/views/projects/tags/index.html.haml
blob: a654d0a886371e07c34c90545b9eac3e770615cd (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
- page_title s_('TagsPage|Tags')
= content_for :meta_tags do
  = auto_discovery_link_tag(:atom, project_tags_url(@project, rss_url_options), title: "#{@project.name} tags")

.flex-list
  .top-area.adjust
    .nav-text.row-main-content
      = s_('TagsPage|Tags give the ability to mark specific points in history as being important')

    .nav-controls
      #js-tags-sort-dropdown{ data: { filter_tags_path: filter_tags_path(search: @search, sort: @sort), sort_options: tags_sort_options_hash.to_json } }
      = link_to project_tags_path(@project, rss_url_options), title: _("Tags feed"), class: 'btn gl-button btn-default btn-icon has-tooltip gl-ml-auto' do
        = sprite_icon('rss', css_class: 'gl-icon qa-rss-icon')
      - if can?(current_user, :admin_tag, @project)
        = link_to new_project_tag_path(@project), class: 'btn gl-button btn-confirm', data: { qa_selector: "new_tag_button" } do
          = s_('TagsPage|New tag')

  = render_if_exists 'projects/commits/mirror_status'

  - if @tags_loading_error
    = render 'shared/errors/gitaly_unavailable', reason: s_('TagsPage|Unable to load tags')

  .tags
    - if @tags.any?
      %ul.flex-list.content-list
        = render partial: 'tag', collection: @tags

      = paginate @tags, theme: 'gitlab'

    - else
      .nothing-here-block
        - if @search.present?
          = s_('TagsPage|Sorry, your filter produced no results.')
        - else
          = s_('TagsPage|Repository has no tags yet.')
          %br
          %small
            = s_('TagsPage|Use git tag command to add a new one:')
            %br
            %span.monospace git tag -a v1.4 -m 'version 1.4'