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[] =
|
$list[] =
|
||||||
[
|
[
|
||||||
'name' => $user['key'],
|
'name' => $user['key'],
|
||||||
'balance' => $client->getBalance(
|
|
||||||
$user['key'],
|
|
||||||
$this->getParameter('app.pool.confirmations')
|
|
||||||
),
|
|
||||||
'address' => $client->getAccountAddress(
|
|
||||||
$user['key']
|
|
||||||
),
|
|
||||||
'total' => $total,
|
'total' => $total,
|
||||||
'rooms' => $rooms,
|
'rooms' => $rooms,
|
||||||
];
|
];
|
||||||
|
@ -10,10 +10,10 @@
|
|||||||
@{{ user.name }}
|
@{{ user.name }}
|
||||||
</strong>
|
</strong>
|
||||||
<span style="float:right">{# @TODO #}
|
<span style="float:right">{# @TODO #}
|
||||||
{{ 'balance: %s KVA' | trans | format(user.balance) }}
|
{{ 'balance' | trans }}: {{ user.name | account_balance | format_kva }}
|
||||||
</span>
|
</span>
|
||||||
<p>
|
<p>
|
||||||
{{ 'boost' | trans }}: {{ user.address }}
|
{{ 'boost' | trans }}: {{ user.name | account_address }}
|
||||||
</p>
|
</p>
|
||||||
{% if user.rooms | length %}
|
{% if user.rooms | length %}
|
||||||
<p>
|
<p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user