$def with (files) $var title: Media $if tx.user.is_owner:
$# $# $#
$#
$for file in files:
$if tx.user.is_owner:
$if file.name.endswith((".png", ".jpg", ".jpeg", ".gif", ".webp")):
$elif file.name.endswith((".mp4", ".webm", ".mov", ".flv")): $if file.name.endswith(".mp4"): $ type = "mp4" $elif file.name.endswith(".webm"): $ type = "webm" $elif file.name.endswith(".mov"): $ type = "mov" $elif file.name.endswith(".flv"): $ type = "x-flv"
$elif file.name.endswith((".m4a",)):

$file.name $round(file.stat().st_size / 1024 / 1024, 2)mb

$if tx.user.is_owner: