42062a454a
This changes the issue and MR index pages so the pagination system re-uses the output of the COUNT(*) query used to calculate the number of rows per state (opened, closed, etc). This removes the need for an additional COUNT(*) on both pages.
8 lines
262 B
Text
8 lines
262 B
Text
%ul.content-list.mr-list.issuable-list
|
|
- if @merge_requests.exists?
|
|
= render @merge_requests
|
|
- else
|
|
= render 'shared/empty_states/merge_requests'
|
|
|
|
- if @merge_requests.present?
|
|
= paginate @merge_requests, theme: "gitlab", total_pages: @total_pages
|