{% macro icon(icon) %} {% endmacro %} {%- macro page_actions(tools) -%} {% import _self as macro %}
{%- endmacro -%} {%- macro entity_actions(tools) -%} {% import _self as macro %} {%- endmacro -%} {% macro page_header(title) %}{{ description|trans }}
{{ 'label.team'|trans }} | {{ 'label.user'|trans }} |
---|---|
{{ team.name }} | {% set userTeamCount = team.users|length %} {{ macro.user_avatar(team.teamlead, ('label.teamlead'|trans ~ ': ' ~ team.teamlead.displayName), 'teamlead') }} {% set teamHiddenId = 'team_' ~ team.id ~ '_hiddenUser' ~ random() %} {% set counter = 0 %} {% for user in team.users %} {% if user != team.teamlead %} {{ macro.user_avatar(user) }} {% set counter = counter + 1 %} {% endif %} {% if userTeamCount > 5 and counter == 4 and not loop.last %} {{ 'label.plus_more'|trans({'%count%': (userTeamCount - 5)}) }} {% set counter = counter + 1 %} {% endif %} {% if userTeamCount > 5 and counter != 4 and loop.last %} {% endif %} {% endfor %} |