{% set title = cat ? cat.label : 'Structures' %}
{% set subtitle = "Organisation" %}
{% set menu = 'links' %}
{% import "Default/macros.html.twig" as macros %}
{% extends 'Default/base.html.twig' %}
{% block content %}
<div id="links" class='gpadding {{desktop("vt-60-in")}} {{mobile("vt-10-in")}} '>
{% if groups %}
<div class="flex row space border-bottom border-solid border-1x border-gray {{desktop('hz-20-in bottom-50')}} {{mobile('bottom-30')}}">
{% for o in groups %}
<div class="os-tab-head relative pointer transition success upper lspacing nodefault vt-20-in" data-target="#group{{o.id}}">
<label class="pointer">{{o.label}}</label>
</div>
{% endfor %}
</div>
<div class="flex row">
{% for o in groups %}
<div class='os-tab anim-display anim-from-right w100 transition-1s {{desktop("")}} {{mobile("")}}' id="group{{o.id}}">
<div class='w100 {{desktop("flex row space wrap")}} {{mobile("")}}'>
{% for k in list %}
{% if k.category and k.category.id == o.id %}
{{macros.link(k)}}
{% endif %}
{% endfor %}
</div>
</div>
{% endfor %}
</div>
{% else %}
<div class='w100 {{desktop("flex row space wrap")}} {{mobile("")}}'>
{% for k in list %}
{{macros.link(k)}}
{% endfor %}
</div>
{% endif %}
</div>
{% endblock %}