{% import "macros/profileelements.twig" as profile %} {% import "macros/messagebox.twig" as messagebox %} {% import "macros/badges.twig" as badgesmacros %} {% extends "base.twig" %} {% block page_title %} {{ user.nick }} {% endblock %} {% block page_content %} {% if badges|length > 0 %} {% endif %}
{% if user.picture|length > 0 %} {% endif %} {% if user.id == env.user.id %}

{% if env.getConfig("user_picture_upload_enabled") %} {{ i18n.getMessage("user_changepicture_button") }} {% if user.picture_uploadfile|length > 0 %} {{ i18n.getMessage("user_deletepicture_button") }} {% endif %} {% endif %} {% if env.getConfig("gravatar_enable") %} {{ i18n.getMessage("gravatar_edit_picture_button") }} {% endif %}

{% endif %}
{% if absence %} {{ messagebox.box("", i18n.getMessage("absence_profile_info", env.getFormattedDate(absence.to_date)), "warning") }} {% endif %}
{% if user.id == env.user.id %}

{{ i18n.getMessage("button_edit") }}

{% endif %}
{% if userteams|length > 1 %} {% set team = "
    " %} {% for userteam in userteams %} {% set team = team ~ "
  • " ~ userteam.name|e ~ "
  • " %} {% endfor %} {% set team = team ~ "
" %} {% elseif userteams|length == 1 %} {% set team = "" ~ userteams[0].name|e ~ "" %} {% else %} {% set team = "-" %} {% endif %} {{ profile.infofield(i18n.getMessage("entity_club"), team, true) }} {% if user.nationalteam is defined %} {% set nationalteam = "" ~ user.nationalteam.name|e ~ "" %} {{ profile.infofield(i18n.getMessage("nationalteams_team_label"), nationalteam, true) }} {% endif %} {{ profile.infofield(i18n.getMessage("entity_users_highscore"), user.highscore) }} {{ profile.infofield(i18n.getMessage("entity_users_fanbeliebtheit"), user.popularity ~ "%") }} {{ profile.infofield(i18n.getMessage("entity_users_datum_anmeldung"), env.getFormattedDate(user.registration_date)) }} {{ profile.infofield(i18n.getMessage("entity_users_lastonline"), env.getFormattedDate(user.lastonline)) }}
{% if user.name|length > 0 %} {{ profile.infofield(i18n.getMessage("entity_users_name"), user.name) }} {% endif %} {% if user.place|length > 0 %} {{ profile.infofield(i18n.getMessage("entity_users_wohnort"), user.place) }} {% endif %} {% if user.country|length > 0 %} {{ profile.infofield(i18n.getMessage("entity_users_land"), user.country) }} {% endif %} {% if user.birthday > 0 %} {{ profile.infofield(i18n.getMessage("entity_users_geburtstag"), user.birthday|date(env.getConfig("date_format"))) }} {% endif %} {% if user.occupation|length > 0 %} {{ profile.infofield(i18n.getMessage("entity_users_beruf"), user.occupation) }} {% endif %} {% if user.interests|length > 0 %} {{ profile.infofield(i18n.getMessage("entity_users_interessen"), user.interests) }} {% endif %} {% if user.favorite_club|length > 0 %} {{ profile.infofield(i18n.getMessage("entity_users_lieblingsverein"), user.favorite_club) }} {% endif %} {% if user.homepage|length > 0 %} {% set websiteLink = "" ~ i18n.getMessage("user_visit_website") ~ "" %} {{ profile.infofield(i18n.getMessage("entity_users_homepage"), websiteLink, true) }} {% endif %}
{% if env.getConfig("transfermarket_enabled") or env.getConfig("transferoffers_enabled") %}
{% endif %}
{% if user.history|length > 0 %}

{{ i18n.getMessage("entity_users_history") }}

{{ user.history|nl2br }} {% endif %}
{% endblock %}