Skip to content

Commit

Permalink
Speed up payments and users listing by not counting all items
Browse files Browse the repository at this point in the history
remp/crm#2512

(cherry picked from commit c73d4559ada566579261e1d402fd40e0c6a2dcc0)
  • Loading branch information
rootpd committed Jul 29, 2022
1 parent 0241377 commit 4310535
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/Presenters/UsersAdminPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ public function renderDefault()
$pnp->setActualItemCount(count($users));

$this->template->users = $users;
$this->template->totalUsers = $this->usersRepository->totalCount(true);
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/lang/users.cs_CZ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ admin:

default:
title: Uživatelé
total: Celkově
filtered: vyfiltrovaných
new_user: Nový uživatel
email: Email
Expand Down
1 change: 0 additions & 1 deletion src/lang/users.en_US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ admin:

default:
title: Users
total: Total
filtered: filtered
new_user: New user
email: Email
Expand Down
1 change: 0 additions & 1 deletion src/lang/users.hu_HU.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ admin:

default:
title: Felhasználók
total: Összesen
filtered: szűrt
new_user: Új felhasználó
email: E-mail cím
Expand Down
1 change: 0 additions & 1 deletion src/lang/users.sk_SK.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ admin:

default:
title: Používatelia
total: Celkovo
filtered: vyfiltrovaných
new_user: Nový používateľ
email: Email
Expand Down
3 changes: 0 additions & 3 deletions src/templates/UsersAdmin/default.latte
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
<div class="col-md-12">
<h1>
{_users.admin.default.title}
<small>
/ {_users.admin.default.total} {$totalUsers}
</small>
<a href="{link new}" class="btn btn-success btn-lg pull-right"><i class="fa fa-user"></i> {_users.admin.default.new_user}</a>

{control simpleWidget 'admin.users.header'}
Expand Down

0 comments on commit 4310535

Please sign in to comment.