summaryrefslogtreecommitdiff
path: root/app/views/projects/starrers/index.html.haml
blob: fe8a6508dd7129b4fd37349aad95230c13e0af41 (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
- page_title _("Starrers")

.top-area.adjust
  .nav-text
    - full_count_title = "#{@public_count} public and #{@private_count} private"
    #{pluralize(@total_count, 'starrer')}: #{full_count_title}
  - if @starrers.size > 0 || params[:search].present?
    .nav-controls
      = form_tag request.original_url, method: :get, class: 'form-inline user-search-form flex-users-form' do
        .form-group
          .position-relative
            = search_field_tag :search, params[:search], { placeholder: _('Search'), class: 'form-control', spellcheck: false }
            %button.user-search-btn{ type: "submit", "aria-label" => _("Submit search") }
              = sprite_icon('search')
          - starrers_sort_options = starrers_sort_options_hash.map { |value, text| { value: value, text: text, href: filter_starrer_path(sort: value) } }
          = gl_redirect_listbox_tag starrers_sort_options, @sort, class: 'gl-ml-3', data: { right: true }
- if @starrers.size > 0
  .row.gl-mt-3
    = render partial: 'starrer', collection: @starrers, as: :starrer
  = paginate @starrers, theme: 'gitlab'
- elsif params[:search].present?
  .nothing-here-block= _('No starrers matched your search')
- else
  .nothing-here-block= _('Nobody has starred this repository yet')