From 559ecf8de05afc4434bfede291747f79b437e291 Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 18 Feb 2024 03:03:39 +0200 Subject: [PATCH] update info --- templates/default/user/list.html.twig | 33 ++++++++++++++++----------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/templates/default/user/list.html.twig b/templates/default/user/list.html.twig index 687ac64..094d5d7 100644 --- a/templates/default/user/list.html.twig +++ b/templates/default/user/list.html.twig @@ -9,19 +9,26 @@ @{{ user.name }} - {# @TODO #} - {% for namespace, total in user.rooms %} - {{ namespace | keva_namespace_value }} - {{ total }} - {% endfor %} - -
- {{ 'balance' | trans }}: {{ user.balance }} • {{ 'boost' | trans }}: {{ user.address }} +

+ {{ 'balance' | trans }}: {{ user.balance }} +

+

+ {{ 'boost' | trans }}: {{ user.address }} +

+ {% if user.rooms | length %} +

+ {{ 'rooms' | trans }}: + {% for namespace, total in user.rooms %} + {{ namespace | keva_namespace_value }} + {{ total }} + {% endfor %} +

+ {% endif %} {% endfor %}