2023-12-19 06:54:26 +00:00
|
|
|
{% extends 'default/layout.html.twig' %}
|
|
|
|
{% block head_title_content %}{{ 'Users' | trans }} - {{ app.name }}{% endblock %}
|
|
|
|
{% block main_content %}
|
|
|
|
{% if list | length %}
|
|
|
|
<ul>
|
|
|
|
{% for user in list %}
|
|
|
|
<li>
|
|
|
|
<div>
|
|
|
|
<strong>
|
2024-02-18 00:57:23 +00:00
|
|
|
@{{ user.name }}
|
2023-12-19 06:54:26 +00:00
|
|
|
</strong>
|
2024-02-18 01:10:08 +00:00
|
|
|
<span style="float:right">{# @TODO #}
|
2024-02-18 15:36:35 +00:00
|
|
|
{{ 'balance' | trans }}: {{ user.name | account_balance | format_kva }}
|
2024-02-18 01:10:08 +00:00
|
|
|
</span>
|
2024-02-18 01:03:39 +00:00
|
|
|
<p>
|
2024-02-18 15:39:42 +00:00
|
|
|
{{ 'boost' | trans }}: {{ user.address }}
|
2024-02-18 01:03:39 +00:00
|
|
|
</p>
|
|
|
|
{% if user.rooms | length %}
|
|
|
|
<p>
|
|
|
|
{{ 'rooms' | trans }}:
|
|
|
|
{% 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 %}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2023-12-19 06:54:26 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% else %}
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<div>
|
|
|
|
{{ 'users not found or database locked by new transaction' | trans }}
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
2023-12-23 09:35:48 +00:00
|
|
|
{% endblock %}
|
|
|
|
{% block footer_content %}
|
|
|
|
{{
|
|
|
|
render(
|
|
|
|
controller(
|
|
|
|
'App\\Controller\\ModuleController::user',
|
|
|
|
{
|
|
|
|
request: request
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}}
|
2023-12-19 06:54:26 +00:00
|
|
|
{% endblock %}
|