2019-01-25 20:53:00 +00:00
|
|
|
- page_title _("Starrers")
|
|
|
|
|
|
|
|
.top-area.adjust
|
|
|
|
.nav-text
|
2019-02-02 19:22:19 +00:00
|
|
|
- full_count_title = "#{@public_count} public and #{@private_count} private"
|
|
|
|
#{pluralize(@total_count, 'starrer')}: #{full_count_title}
|
2019-02-01 20:20:06 +00:00
|
|
|
- if @starrers.size > 0 || params[:search].present?
|
2019-01-27 11:20:55 +00:00
|
|
|
.nav-controls
|
|
|
|
= form_tag request.original_url, method: :get, class: 'form-inline user-search-form flex-users-form' do
|
|
|
|
.form-group
|
|
|
|
.position-relative
|
2019-02-01 20:03:28 +00:00
|
|
|
= search_field_tag :search, params[:search], { placeholder: _('Search'), class: 'form-control', spellcheck: false }
|
2019-01-27 11:20:55 +00:00
|
|
|
%button.user-search-btn{ type: "submit", "aria-label" => _("Submit search") }
|
2020-10-07 21:08:21 +00:00
|
|
|
= sprite_icon('search')
|
2022-02-11 00:17:04 +00:00
|
|
|
- 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 }
|
2019-01-27 11:20:55 +00:00
|
|
|
- if @starrers.size > 0
|
2020-07-27 21:09:16 +00:00
|
|
|
.row.gl-mt-3
|
2019-01-28 12:19:53 +00:00
|
|
|
= render partial: 'starrer', collection: @starrers, as: :starrer
|
2019-01-28 17:51:49 +00:00
|
|
|
= paginate @starrers, theme: 'gitlab'
|
2022-02-11 00:17:04 +00:00
|
|
|
- elsif params[:search].present?
|
|
|
|
.nothing-here-block= _('No starrers matched your search')
|
2019-01-27 11:56:30 +00:00
|
|
|
- else
|
2022-02-11 00:17:04 +00:00
|
|
|
.nothing-here-block= _('Nobody has starred this repository yet')
|