
{% if parents.get_count() > 0 %}
<ul>
  <li class="title">{{ 'Apparait aussi dans ces reportages' | trans }}</li>
  {% for par in parents %}
    <li onclick="openPreview(this, 'REG',0,'{{par.get_serialize_key()}}', true); return(false);"
        class="otherRegToolTip" {% 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 onclick="openPreview(this, 'BASK',0,'{{basket.getId()}}',true); return(false);"
                   class="otherBaskToolTip" 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 %}
