mirror of
https://github.com/kevachat/webapp.git
synced 2025-01-22 12:34:25 +00:00
use twig filters for account balance format
This commit is contained in:
parent
f36d22393a
commit
9c2464d7fb
@ -131,13 +131,6 @@ class UserController extends AbstractController
|
||||
$list[] =
|
||||
[
|
||||
'name' => $user['key'],
|
||||
'balance' => $client->getBalance(
|
||||
$user['key'],
|
||||
$this->getParameter('app.pool.confirmations')
|
||||
),
|
||||
'address' => $client->getAccountAddress(
|
||||
$user['key']
|
||||
),
|
||||
'total' => $total,
|
||||
'rooms' => $rooms,
|
||||
];
|
||||
|
@ -10,10 +10,10 @@
|
||||
@{{ user.name }}
|
||||
</strong>
|
||||
<span style="float:right">{# @TODO #}
|
||||
{{ 'balance: %s KVA' | trans | format(user.balance) }}
|
||||
{{ 'balance' | trans }}: {{ user.name | account_balance | format_kva }}
|
||||
</span>
|
||||
<p>
|
||||
{{ 'boost' | trans }}: {{ user.address }}
|
||||
{{ 'boost' | trans }}: {{ user.name | account_address }}
|
||||
</p>
|
||||
{% if user.rooms | length %}
|
||||
<p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user