2019-01-25 15:53:00 -05:00
|
|
|
- page_title _("Starrers")
|
|
|
|
|
|
|
|
.top-area.adjust
|
|
|
|
.nav-text
|
2019-02-02 14:22:19 -05:00
|
|
|
- full_count_title = "#{@public_count} public and #{@private_count} private"
|
|
|
|
#{pluralize(@total_count, 'starrer')}: #{full_count_title}
|
2019-02-01 15:20:06 -05:00
|
|
|
- if @starrers.size > 0 || params[:search].present?
|
2019-01-27 06:20:55 -05: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 15:03:28 -05:00
|
|
|
= search_field_tag :search, params[:search], { placeholder: _('Search'), class: 'form-control', spellcheck: false }
|
2019-01-27 06:20:55 -05:00
|
|
|
%button.user-search-btn{ type: "submit", "aria-label" => _("Submit search") }
|
2020-10-07 17:08:21 -04:00
|
|
|
= sprite_icon('search')
|
2019-02-01 15:03:28 -05:00
|
|
|
.dropdown.inline.user-sort-dropdown
|
|
|
|
= dropdown_toggle(starrers_sort_options_hash[@sort], { toggle: 'dropdown' })
|
|
|
|
%ul.dropdown-menu.dropdown-menu-right.dropdown-menu-selectable
|
|
|
|
%li.dropdown-header
|
|
|
|
= _("Sort by")
|
|
|
|
- starrers_sort_options_hash.each do |value, title|
|
|
|
|
%li
|
|
|
|
= link_to filter_starrer_path(sort: value), class: ("is-active" if @sort == value) do
|
|
|
|
= title
|
2019-01-27 06:20:55 -05:00
|
|
|
- if @starrers.size > 0
|
2020-07-27 17:09:16 -04:00
|
|
|
.row.gl-mt-3
|
2019-01-28 07:19:53 -05:00
|
|
|
= render partial: 'starrer', collection: @starrers, as: :starrer
|
2019-01-28 12:51:49 -05:00
|
|
|
= paginate @starrers, theme: 'gitlab'
|
2019-01-27 06:56:30 -05:00
|
|
|
- else
|
2019-02-01 15:03:28 -05:00
|
|
|
- if params[:search].present?
|
2019-07-24 12:35:19 -04:00
|
|
|
.nothing-here-block= _('No starrers matched your search')
|
2019-02-01 15:03:28 -05:00
|
|
|
- else
|
2019-07-24 12:35:19 -04:00
|
|
|
.nothing-here-block= _('Nobody has starred this repository yet')
|