{% set variant = variant|default('default') %} {% macro platform_initial(platform) %} {% set name = platform ? platform.name : 'Platforma' %} {{ name|slice(0, 2)|upper }} {% endmacro %} {% if project.projectPlatformStatuses|length > 0 %} {% if variant in ['catalog', 'dashboard'] %} {% set visible_channels = [] %} {% set hidden_channels = [] %} {% for channel in project.projectPlatformStatuses %} {% set intent = channel.intent|default('undecided') %} {% set status = channel.status|default('not_created') %} {% set should_hide = intent in ['undecided', 'excluded', ''] %} {% if should_hide %} {% set hidden_channels = hidden_channels|merge([channel]) %} {% else %} {% set visible_channels = visible_channels|merge([channel]) %} {% endif %} {% endfor %}