mirror of
https://github.com/kevachat/webapp.git
synced 2025-03-09 20:11:15 +00:00
add user balance / boost address info
This commit is contained in:
parent
9d9cd852ad
commit
4c7fc2f910
@ -99,9 +99,15 @@ class UserController extends AbstractController
|
||||
|
||||
$list[] =
|
||||
[
|
||||
'name' => $user['key'],
|
||||
'total' => $total,
|
||||
'rooms' => $rooms,
|
||||
'name' => $user['key'],
|
||||
'balance' => $client->getBalance(
|
||||
$user['key']
|
||||
),
|
||||
'address' => $client->getAccountAddress(
|
||||
$user['key']
|
||||
),
|
||||
'total' => $total,
|
||||
'rooms' => $rooms,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -7,19 +7,18 @@
|
||||
<li>
|
||||
<div>
|
||||
<strong>
|
||||
@{{ user.name }}
|
||||
@{{ user.name }} / {{ 'balance' | trans }}: {{ user.balance }} / {{ 'boost' | trans }}: {{ user.address }}
|
||||
</strong>
|
||||
<span style="float:right">{# @TODO #}
|
||||
{% for namespace, total in user.rooms %}
|
||||
<a href="{{
|
||||
path('room_namespace',
|
||||
{
|
||||
mode : request.get('mode'),
|
||||
namespace : namespace, _fragment : 'latest'
|
||||
}) }}">{{ namespace | keva_namespace_value }}</a>
|
||||
{{ total }}
|
||||
{% endfor %}
|
||||
</span>
|
||||
<br />
|
||||
{% for namespace, total in user.rooms %}
|
||||
<a href="{{
|
||||
path('room_namespace',
|
||||
{
|
||||
mode : request.get('mode'),
|
||||
namespace : namespace, _fragment : 'latest'
|
||||
}) }}">{{ namespace | keva_namespace_value }}</a>
|
||||
{{ total }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user