{% import 'common/thumbnail.html.twig' as thumbnail %} {% extends 'prod/Tooltip/Tooltip.html.twig' %} {% set title %} {{ Story.get_title() }} {% endset %} {% set width = 300 %} {% set maxwidth = null %} {% block content %}
{% set nb_records = Story.get_children().get_elements()|length %} {% set date = app['date-formatter'].getPrettyString(Story.get_modification_date()) %} {% trans with {'%nb_records%' : nb_records} %}%nb_records% records{% endtrans %} - {{ date }}
{% for element in Story.get_children().get_elements() %} {% if loop.index <= 9 %}
{{ thumbnail.format(element.get_thumbnail(), 80, 80 , '', false, false) }}
{% endif %} {% endfor %}
{% endblock %}