diff options
author | Camil Staps <info@camilstaps.nl> | 2019-01-28 18:51:49 +0100 |
---|---|---|
committer | Camil Staps <info@camilstaps.nl> | 2019-08-07 20:49:15 +0200 |
commit | a052f68116363109b5d49c9738e711a12257ac7d (patch) | |
tree | 4142b923ae57edf3e997501b8ca80955a02f7921 /app/views/projects/starrers/index.html.haml | |
parent | 6baff6504b234e209a5e1d78349dbd2589d5d7e8 (diff) | |
download | gitlab-ce-a052f68116363109b5d49c9738e711a12257ac7d.tar.gz |
Add pagination to {project}/starrers view
Diffstat (limited to 'app/views/projects/starrers/index.html.haml')
-rw-r--r-- | app/views/projects/starrers/index.html.haml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/projects/starrers/index.html.haml b/app/views/projects/starrers/index.html.haml index 662da94107a..3d39331ec62 100644 --- a/app/views/projects/starrers/index.html.haml +++ b/app/views/projects/starrers/index.html.haml @@ -4,7 +4,7 @@ .nav-text %span.flex-project-title = _("Starrers of <strong>%{project_name}</strong>").html_safe % { project_name: sanitize_project_name(@project.name) } - %span.badge.badge-pill= @starrers.size + %span.badge.badge-pill= @starrers.total_count - if @starrers.size > 0 .nav-controls = form_tag request.original_url, method: :get, class: 'form-inline user-search-form flex-users-form' do @@ -20,10 +20,11 @@ = _("Sort by") - starrers_sort_options_hash.each do |value, title| %li - = link_to filter_user_path(sort: value), class: ("is-active" if @sort == value) do + = link_to filter_starrer_path(sort: value), class: ("is-active" if @sort == value) do = title - if @starrers.size > 0 .row.prepend-top-10 = render partial: 'starrer', collection: @starrers, as: :starrer + = paginate @starrers, theme: 'gitlab' - else .nothing-here-block Nobody has starred this repository yet |