{% extends 'base.html.twig' %} {% import "user/actions.html.twig" as actions %} {% block page_title %}{% if not user.alias is empty %}{{ user.alias }}{% else %}{{ user.username }}{% endif %}{% endblock %} {% block page_subtitle %}{% if not user.alias is empty %}{{ user.username }}{% endif %}{% endblock %} {% block page_actions %}{{ actions.user(user, tab) }}{% endblock %} {% block main %}
{% block profile_content %}{% endblock %}
{% embed '@AdminLTE/Widgets/box-widget.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% block box_body_class %}box-profile{% endblock %} {% block box_body %}
{{ widgets.user_avatar(user) }}

{{ widgets.username(user) }}

{{ user.title }}

{% set seeOwnRate = is_granted('view_rate_own_timesheet') %} {% if seeOwnRate %} {# TODO which currency shall we use here? #} {% endif %} {% if seeOwnRate %} {# TODO which currency shall we use here? #} {% endif %}
{{ 'stats.durationMonth'|trans }} {{ stats.durationThisMonth|duration }}
{{ 'stats.amountMonth'|trans }}{{ stats.amountThisMonth|money }}
{{ 'stats.durationTotal'|trans }} {{ stats.durationTotal|duration }}
{{ 'stats.amountTotal'|trans }}{{ stats.amountTotal|money }}
{% endblock %} {% endembed %} {% embed '@AdminLTE/Widgets/box-widget.html.twig' %} {% block box_title %}{{ 'profile.about_me'|trans }}{% endblock %} {% block box_body %} {# colors = purple, blue, aqua, red, green #} {% if is_granted('hourly-rate', user) %} {% endif %}
{{ 'label.id'|trans }} {{ user.id }}
{{ 'label.username'|trans }} {{ user.username }}
{{ 'profile.first_entry'|trans }} {{ stats.firstEntry|date_short }}
{{ 'profile.registration_date'|trans }} {{ user.registeredAt|date_short }}
{{ 'label.hourlyRate'|trans }} {{ user.preferenceValue('hourly_rate') }}
{% endblock %} {% endembed %} {% if user.teams is not empty and (is_granted('teams', user) or (app.user == user and is_granted('view_team_member'))) %} {% embed '@AdminLTE/Widgets/box-widget.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% block box_title %}{{ 'label.my_teams'|trans }}{% endblock %} {% block box_tools %} {% if is_granted('roles', user) %} {% endif %} {% endblock %} {% block box_body %} {{ widgets.team_list(user.teams) }} {% endblock %} {% endembed %} {% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}