Browse Source

add user balance / boost address info

main
ghost 10 months ago
parent
commit
4c7fc2f910
  1. 6
      src/Controller/UserController.php
  2. 5
      templates/default/user/list.html.twig

6
src/Controller/UserController.php

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

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

@ -7,9 +7,9 @@ @@ -7,9 +7,9 @@
<li>
<div>
<strong>
@{{ user.name }}
@{{ user.name }} / {{ 'balance' | trans }}: {{ user.balance }} / {{ 'boost' | trans }}: {{ user.address }}
</strong>
<span style="float:right">{# @TODO #}
<br />
{% for namespace, total in user.rooms %}
<a href="{{
path('room_namespace',
@ -19,7 +19,6 @@ @@ -19,7 +19,6 @@
}) }}">{{ namespace | keva_namespace_value }}</a>
{{ total }}
{% endfor %}
</span>
</div>
</li>
{% endfor %}

Loading…
Cancel
Save