{% defer (url=endpoint, pluck='content_ratings') %} {% if this.rating %}

{{ _('Content Rating') }}

{# Content rating. #} {{ iarc_names.ratings[this.body][this.rating] }}
{# Content descriptors as a list of text. Only shown if there are not any descriptor icons (i.e. non-PEGI bodies). #} {% if this.descriptors and not iarc.descriptor_icons[this.body] %}
    {% for descriptor in this.descriptors %}
  • {{ iarc_names.descriptors[this.body][descriptor] }}
  • {% endfor %}
{% else %} {# If not showing descriptor text, show the rating name to fill in space. #} {{ iarc_names.ratings[this.body][this.rating] }} {% endif %}
{% set desc_icons = iarc.descriptor_icons[this.body] %} {% if desc_icons %} {# Content descriptors as a grid of icons. Only shown if there are descriptor icons (i.e. PEGI-only). #}
{% for descriptor in this.descriptors %} {% set icon_src = desc_icons[descriptor] %} {% if icon_src %} {{ names.descriptors[this.body][descriptor] }} {% endif %} {% endfor %}
{% elif this.interactives %} {% set interactive_icons = iarc.interactive_icons[this.body] %}
{% for interactive in this.interactives %} {% if interactive_icons %} {# Interactive elements as a row of icons (ESRB only). #} {% set icon_src = interactive_icons[interactive] %} {% if icon_src %} {{ names.interactives[interactive] }} {% endif %} {% else %} {# Interactive elements as a column of text (non-PEGI/ESRB bodies). #}

{{ iarc_names.interactives[interactive] }}

{% endif %} {% endfor %}
{% endif %}
{% set rating_detail_link = iarc.detail_links[this.body] %} {% if rating_detail_link %} {{ _('Content Rating Details') }} {% endif %}
{% endif %} {% except %} {% end %}