{% set image = createModel('Image','image').where('id','>',0) %} {% set user_filter = searchValue('user_id','images') %} {{ user_filter }} {% if user_filter is not empty %} {% set image = image.userImagesQuery(user_filter) %} {% endif %} {{ createSearch('file_name','images','ilike:{value}%') }} {% set image = applySearch(image,'images') %} {% set items = paginate(image,'images') %} {% if items.getItems()|length == 0 %} {{ labels.empty }} {% endif %} {% for item in items.getItems() %}
{% if item.deny_delete != true %} {% endif %}
{{ component('semantic~status.dropdown',{ status: item.status, uuid: item.uuid, skip: [2,3,4,5] }) }} {{ item.date_created|dateFormat }} {% set thumbnail = item.thumbnail(64,64) %} {% if thumbnail is not empty %} {% else %}
{{ component('icons~image',{ size: 'h-full w-full', color: 'gray-400' },'svg') }}
{% endif %} {% if item.width is not empty and item.height is not empty %} {{ item.width }} x {{ item.height }} {% else %} .. {% endif %} {% if item.deny_delete is not empty %}
{{ labels.delete }}
{% endif %} {% if item.private == true %}
{% else %}
{% endif %} {{ item.file_name|baseName }} {{ item.category.getTranslationTitle() }} {{ item.user.user_name }} {% endfor %}