{% extends "layouts" ~ DIR ~ "default.twig" %} {% block title %}{{ "Manage Uploads" | translate }}{% endblock %} {% block content %}
{{ "Name" | translate }} | {{ "Last Modified" | translate }} | {{ "Size" | translate }} | {{ "Type" | translate }} | {{ trigger.call("manage_uploads_column_header") }}{{ "Controls" | translate }} | |
---|---|---|---|---|---|
{% if ["jpg", "jpeg", "png", "webp", "gif"] | contains(upload.type) %} {{ upload.name | thumbnail("", false, ["max_width=70", "quality=60", "square=1"], "70px") }} {% elseif ["avif", "tif", "tiff", "heif", "bmp"] | contains(upload.type) %} {{ icon_img("image.svg", "", "placeholder") }} {% elseif ["mp3", "m4a", "oga", "ogg", "mka", "flac", "wav", "aiff"] | contains(upload.type) %} {{ icon_img("audio.svg", "", "placeholder") }} {% elseif ["mpg", "mpeg", "mp2", "mp4", "m4v", "ogv", "mkv", "mov", "avi", "webm", "3gp", "ts"] | contains(upload.type) %} {{ icon_img("video.svg", "", "placeholder") }} {% elseif ["zip", "tar", "rar", "gz", "bz2", "7z", "dmg", "cab", "iso", "udf"] | contains(upload.type) %} {{ icon_img("archive.svg", "", "placeholder") }} {% else %} {{ icon_img("file.svg", "", "placeholder") }} {% endif %} {{ upload.name | fix }} | {{ upload.modified | time("Y-m-d H:i:s") }} | {{ upload.size | filesizeformat }} | {{ upload.type | upper }} | {{ trigger.call("manage_uploads_column", upload) }}{{- icon_img("download.svg", "download" | translate) -}} | {{- icon_img("delete.svg", "delete" | translate) -}} |
{{ icon_img("failure.svg", "", "emblem") }} {{ "No results" | translate }} |