{% set list = data.get('page.head.atoms') ?? defaults.get('page.head.atoms') %}
{% if list %}
{%- for atom in list -%}
{% set classes = (atom.attributes.enabled ? '' : 'atom-disabled') ~ (atom.inherit.outline ? ' g-inheriting' : '') %}
{% set inheriting = atom.inherit.outline ? ' g-inheriting="" data-tip="'
~ 'GANTRY5_PLATFORM_INHERITING_FROM_X'|trans('' ~ gantry.outlines.title(atom.inherit.outline) ~ '') ~' ID: ' ~ atom.inherit.atom ~ ' Replace: ' ~ atom.inherit.include|join(', ') ~ '"' %}
{% set title = atom.attributes.enabled ? '' : ' title="' ~ 'GANTRY5_PLATFORM_ATOMS_DISABLED_DESC'|trans ~ '"' %}
{{- atom.title -}}
{%- endfor -%}
{% else %}
{% endif %}
{% if overrideable %}
{% set prefix = 'page.head.' %}
{% include 'forms/override.html.twig' with {'scope': prefix, 'name': 'atoms', 'has_value': data.get(prefix ~ 'atoms') is not null, 'field': {'label': 'Enabled of the field Atoms' }} %}
{% endif %}
{# Deprecated Atoms from Layout (< 5.2.0) #}
{% if atoms_deprecated is not null and atoms_deprecated|length and data.get('page.head.atoms') %}