{% extends "box.twig" %}
{% import "macros/statisticelements.twig" as statisticelements %}
{% block box_title %}
{{ i18n.getMessage('userprofile_block_title') }}
{% endblock %}
{% block box_content %}
{% if env.user.profilepicture|length > 0 %}
{% endif %}
{{ i18n.getMessage('userprofile_block_loggedin_as') }}
{{ env.user.username }}
{% if unseenMessages > 0 %}
({{ unseenMessages }})
{% endif %}
{% if unseenNotifications > 0 %} {{ unseenNotifications }}{% endif %}
{{ i18n.getMessage('userprofile_block_popularity') }}
{{ statisticelements.progressbar(profile.user_popularity) }}{{ i18n.getMessage('userprofile_block_highscore') }}
{{ profile.user_highscore|number_format(0, ',', ' ') }}
{{ i18n.getMessage('entity_club') }}
{% if userteam.team_picture|length %}
{% set teamPicture = "" %}
{% else %}
{% set teamPicture = "" %}
{% endif %}
{% if env.getConfig("max_number_teams_per_user") > 1 %}
{{ i18n.getMessage('entity_club_finanz_budget') }}
{{ userteam.team_budget|number_format(0, ',', ' ') }} {{ env.getConfig("game_currency") }}
{{ i18n.getMessage('entity_users_premium_balance') }}
{{ env.user.premiumBalance|number_format(0, ',', ' ') }} {{ env.getConfig("premium_credit_unit") }}
{{ i18n.getMessage('userprofile_block_link_logout') }} | {{ i18n.getMessage('userprofile_block_link_profile') }}
{% endblock %}