
{% if parents.get_count() > 0 %}
<ul>
  <li class="title">{{ 'Apparait aussi dans ces reportages' | trans }}</li>
  {% for par in parents %}
    <li data-kind="REG"
        data-position="0"
        data-id="{{par.get_serialize_key()}}"
        data-reload="true"
        class="otherRegToolTip open-preview-action" {% if app['conf'].get(['registry', 'classic', 'stories-preview']) %}tooltipsrc="{{ path('prod_tooltip_caption', { 'sbas_id' : par.get_sbas_id(), 'record_id' : par.get_record_id(), 'context' : 'basket' }) }}" {% endif %}>
      <img src="{{par.get_thumbnail().get_url()}}" style="width:25px;height:25px;"/>
      <span class="title" title="{{ par.get_title() }}"> {{ par.get_title() }} </span>
    </li>
  {% endfor %}
  </ul>
{% endif %}

{% if baskets|length > 0 %}
<ul>
  <li class="title">{{ 'Apparait aussi dans ces paniers' | trans }}</li>
{% for basket in baskets %}
  <li data-kind="BASK"
      data-position="0"
      data-id="{{basket.getId()}}"
      data-reload="true"
      class="otherBaskToolTip open-preview-action" title="{{basket.getDescription()}}">
    {#<img style="vertical-align:middle" src="/assets/common/images/icons/basket.png" width="16">#}

    {% if basket.getValidation() %}
      <img src='/assets/common/images/icons/basket_validation.png' title='' width="16" class="btn-image"/>
    {% elseif basket.getPusher() %}
      {% if not basket.isRead() %}
        <img src='/assets/common/images/icons/basket_push_unread.png' title='' width="16" class="btn-image"/>
      {% else %}
        <img src='/assets/common/images/icons/basket_push.png' title='' width="16" class="btn-image"/>
      {% endif %}
    {% else %}
      <img src='/assets/common/images/icons/basket.png' title='' width="16" class="btn-image"/>
    {% endif %}

    <span class="title">{{basket.getName()}}</span>
  </li>
{% endfor %}
</ul>
{% endif %}
