{% extends "prod/actions/Bridge/wrapper.html.twig" %} {% import "prod/actions/Bridge/paginator.html.twig" as pages %} {% block menu %} {% if adapter_action == 'load-elements' %} {% set actiontemplate = 'prod/actions/Bridge/' ~ account.get_api().get_connector().get_name() ~ '/actionelements.html.twig' %} {% elseif adapter_action == 'load-containers' %} {% set actiontemplate = 'prod/actions/Bridge/' ~ account.get_api().get_connector().get_name() ~ '/actioncontainers.html.twig' %} {% endif %} {% include actiontemplate %}
{% set url = '/prod/bridge/adapter/' ~ account.get_id ~ '/' ~ adapter_action ~ '/' ~ action_type ~ '/' %} {{pages.paginator(elements.get_total_page(), elements.get_current_page(), url) }}
{% endblock %} {% block response %} {%for element in elements.get_elements%}
{% if element.get_thumbnail != "" %}
{% if element.get_duration != "" %} {{element.get_duration}} {% endif %}
{% else %} {{ 'Imagette indisponible' | trans }} {% endif %}

{% if element.get_description is not empty %} {{element.get_description}} {% else %} {{ 'Aucune description.' | trans }} {% endif %}


{{ app['date-formatter'].getPrettyString(element.get_created_on) }} {% if element.get_category != '' %} {% set category = element.get_category %} {% trans with {'%category%' : category} %}dans %category%{% endtrans %} {% endif %}
{% if not element.is_private is none %}
{% if element.is_private %} {{ 'Confidentialite : privee' | trans }} {% else %} {{ 'Confidentialite : publique' | trans }} {% endif %}
{% endif %}
{% set information_template = 'prod/actions/Bridge/' ~ account.get_api().get_connector().get_name() ~ '/element_informations.html.twig' %} {% include information_template %}
{% if adapter_action == 'load-elements' %} {% set actiontemplate = 'prod/actions/Bridge/' ~ account.get_api().get_connector().get_name() ~ '/actionelement.html.twig' %} {% elseif adapter_action == 'load-containers' %} {% set actiontemplate = 'prod/actions/Bridge/' ~ account.get_api().get_connector().get_name() ~ '/actioncontainer.html.twig' %} {% endif %} {% include actiontemplate %}
{% endfor %} {% endblock %}