2019-10-12 21:52:04 +05:30
|
|
|
- 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") }
|
2021-01-03 14:25:43 +05:30
|
|
|
= sprite_icon('search')
|
2022-03-02 08:16:31 +05:30
|
|
|
.dropdown.inline.gl-ml-3
|
2019-10-12 21:52:04 +05:30
|
|
|
= 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
|
|
|
|
- if @starrers.size > 0
|
2020-10-24 23:57:45 +05:30
|
|
|
.row.gl-mt-3
|
2019-10-12 21:52:04 +05:30
|
|
|
= render partial: 'starrer', collection: @starrers, as: :starrer
|
|
|
|
= paginate @starrers, theme: 'gitlab'
|
|
|
|
- else
|
|
|
|
- if params[:search].present?
|
|
|
|
.nothing-here-block= _('No starrers matched your search')
|
|
|
|
- else
|
|
|
|
.nothing-here-block= _('Nobody has starred this repository yet')
|