From a813ef1a99c1fac2ae7aaa5711622e58f4eb16e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 18 May 2022 22:30:57 +0200 Subject: [PATCH] link to attached files --- macros/attachments | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/macros/attachments b/macros/attachments index aecacfb..bcd6722 100755 --- a/macros/attachments +++ b/macros/attachments @@ -20,9 +20,10 @@ for file in "$_EXEC/pages/$page/#attachments"/* "$_DATA/pages/$page/#attachments stat="$(stat -c '%s %Y' -- "$file" 2>&-)" || continue size="${stat% *}" date="${stat#* }" - printf '
  • %s + printf '
  • %s %s%s
  • ' \ - "$(HTML "${file##*/}")" "$(size_human "$size")" "$(date -d @"$date" +"%F %T")" + "$(HTML "${file##*/}")" "$(HTML "${file##*/}")" \ + "$(size_human "$size")" "$(date -d @"$date" +"%F %T")" done printf %s\\n '' -- 2.39.2