{% for entry in entries %}
{% if currentDay is not defined or currentDay != entry.createdAt|format_date %}
{% set currentDay = entry.createdAt|format_date %}
{{ currentDay }}
{% endif %}
{% set subject = entry.getComponent('subject') %}
{% set target = entry.getComponent('target') %}
{% set target_text_component = entry.getComponent('target_text') %}
{% if subject.data %}
{% set subject_text = sonata_timeline_generate_link(subject, entry) %}
{% else %}
{% set subject_text = '' ~ 'element_deleted'|trans({}, "SonataTimelineBundle") ~ '' %}
{% endif %}
{% if target.data is defined and target.data is not empty %}
{% set target_text = sonata_timeline_generate_link(target, entry) %}
{% elseif target_text_component %}
{% set target_text = ''~target_text_component~'' %}
{% else %}
{% set target_text = '' ~ 'element_deleted'|trans({}, "SonataTimelineBundle") ~ '' %}
{% endif %}
{% set verb = "actions."~entry.verb %}
{% set icon = "actions.icon."~entry.verb %}