{% extends (app.request.isXmlHttpRequest) ? "::ajaxList.html.twig" : (( dist.id is defined and dist.id > 0 ) ? "::baseDistributor.html.twig" : "::baseMain.html.twig") %} {% block main_container %}
{% block list %}
    {% if (data|length>0) %} {% if data.pagination.items is defined and data.pagination.items is not empty%} {% for index in data.pagination.items %}
  • {% if index.flyerThumb is defined and index.flyerThumb is not empty and file_exists(base_path ~'/images/uploads/flyer-created/'~index.flyerThumb) %} {% set image_path = asset("uploads/flyer-created/"~ index.flyerThumb ) %} {% elseif index.flyerUploadedPath is defined and index.flyerUploadedPath is not empty and file_exists(base_path ~'/images/uploads/flyer-own-images/'~index.flyerUploadedPath) %} {% set image_path = asset("uploads/flyer-own-images/"~ index.flyerUploadedPath ) %} {% else %} {% set image_path = asset('images/grey-logo.png') %} {% endif %} {% if index.flyerUploadedPath is defined and index.flyerUploadedPath is not empty %} {% else %} {% endif %}
    {% if index.flyerUploadedPath is defined and index.flyerUploadedPath is not empty %}

    {{ index.title|truncate(40) }}

    {% else %}

    {{ index.title|truncate(40) }}

    {% endif %}
  • {% endfor %} {% else %} {% if dist.id is defined and dist.id > 0 %}
    {{ 'userList.comingsoon' |trans({}, 'app') }}
    {% else %}
    {{ 'userList.no_data' |trans({}, 'app') }}
    {% endif %} {% endif %} {% endif %}
{{ knp_pagination_render(data.pagination, 'OfficeBrainCoreBundle:User:frontPagination.html.twig') }} {% endblock list %}
{% endblock main_container %}