{% extends 'Admin/admin.html.twig' %} {% block title %}{{"Détail du compte"|trans}} {{user.Name}}{% endblock %} {% block body %} {% if user.IsBanned is defined %} {% set isBanned = user.IsBanned %} {% endif %} {% if user.IpBan is defined %} {% set isBanned = user.IpBan %} {% endif %} {% if user.IsMuted is defined %} {% set isMuted = user.IsMuted %} {% endif %} {% if user.IpMute is defined %} {% set isMuted = user.IpMute %} {% endif %}
{{"Détail du compte"|trans}} {{user.Name}}
{% for message in app.flashes('success') %}
{{ message }}
{% endfor %} {% for message in app.flashes('error') %}
{{ message }}
{% endfor %}

{{"Information du compte"|trans}}

  • Id : {{user.Id}}
  • {{"Nom du compte"|trans}} : {{user.Name}}
  • {{"Email du compte"|trans}} : {{user.Email}}
  • {% if user.PlayTimeSeconds is defined and user.PlayTimeSeconds is not null %}
  • {{"Temps de jeu"|trans}} : ~ {{user.PlayTimeSeconds|ago}}
  • {% endif %} {% if user.RegistrationDate is defined and user.RegistrationDate is not null %}
  • {{"Date d'inscription"}} : {{user.RegistrationDate|date('d/m/Y')}}
  • {% endif %}
  • {{"Status"|trans}} : {% if isBanned %} {{"Banni"|trans}} {% else %} {% if isMuted %} {{"En sourdine"|trans}} {% else %} {{"Normal"|trans}} {% endif %} {% endif %}
{% if isBanned %} {% else %} {% endif %} {% if isMuted %} {% else %} {% endif %}

{{"Personnage"|trans}}

{% for player in characters %} {% endfor %}
# {{ 'Nom'|trans }} {{ 'Niveau'|trans }} {{ 'Exp'|trans }} {{ 'Action'|trans }}
{{ loop.index }} {{ player.Name }} {{ player.Level }} {% if player.Level == 100 %} Niveau max atteint ! {% else %} {{ player.Exp }}/{{player.ExperienceToNextLevel }} {% endif %} Détail
{% endblock %}