Browse Source

cache user address request

main
ghost 9 months ago
parent
commit
7f649110a5
  1. 3
      src/Controller/UserController.php
  2. 2
      templates/default/user/list.html.twig

3
src/Controller/UserController.php

@ -131,6 +131,9 @@ class UserController extends AbstractController
$list[] = $list[] =
[ [
'name' => $user['key'], 'name' => $user['key'],
'address' => $client->getAccountAddress(
$user['key']
),
'total' => $total, 'total' => $total,
'rooms' => $rooms, 'rooms' => $rooms,
]; ];

2
templates/default/user/list.html.twig

@ -13,7 +13,7 @@
{{ 'balance' | trans }}: {{ user.name | account_balance | format_kva }} {{ 'balance' | trans }}: {{ user.name | account_balance | format_kva }}
</span> </span>
<p> <p>
{{ 'boost' | trans }}: {{ user.name | account_address }} {{ 'boost' | trans }}: {{ user.address }}
</p> </p>
{% if user.rooms | length %} {% if user.rooms | length %}
<p> <p>

Loading…
Cancel
Save