Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.html.haml « tags « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 229f13d0ff3a39bd30d608cfba4e0b915cc729e1 (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
42
43
44
45
46
47
48
49
50
51
- @sort ||= sort_value_recently_updated
- 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
      - unless Gitlab::Ci::Features.gldropdown_tags_enabled?
        = form_tag(filter_tags_path, method: :get) do
          = search_field_tag :search, params[:search], { placeholder: s_('TagsPage|Filter by tag name'), id: 'tag-search', class: 'form-control search-text-input input-short', spellcheck: false }

        .dropdown
          %button.dropdown-menu-toggle{ type: 'button', data: { toggle: 'dropdown'} }
            %span.light
              = tags_sort_options_hash[@sort]
            = sprite_icon('chevron-down', css_class: 'dropdown-menu-toggle-icon gl-top-3')
          %ul.dropdown-menu.dropdown-menu-right.dropdown-menu-selectable
            %li.dropdown-header
              = s_('TagsPage|Sort by')
            - tags_sort_options_hash.each do |value, title|
              %li
                = link_to title, filter_tags_path(sort: value), class: ("is-active" if @sort == value)
      - else
        #js-tags-sort-dropdown{ data: { filter_tags_path: filter_tags_path, sort_options: tags_sort_options_hash.to_json } }
      - 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')
      = link_to project_tags_path(@project, rss_url_options), title: _("Tags feed"), class: 'btn gl-button btn-default btn-icon d-none d-sm-inline-block has-tooltip' do
        = sprite_icon('rss', css_class: 'qa-rss-icon')

  = render_if_exists 'projects/commits/mirror_status'

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

      = paginate @tags, theme: 'gitlab'

    - else
      .nothing-here-block
        = 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'