diff --git a/pages/share_list.templ b/pages/share_list.templ
index 690e9a0..6b9b595 100644
--- a/pages/share_list.templ
+++ b/pages/share_list.templ
@@ -15,6 +15,15 @@ type File struct {
Key string
}
+func isPhoto(filename string) bool {
+ switch path.Ext(filename) {
+ case ".jpg", ".jpeg", ".png", ".heic", ".webp", ".avif", ".gif", ".tiff":
+ return true
+ default:
+ return false
+ }
+}
+
templ filetypeIcon(filename string) {
switch path.Ext(filename) {
case ".jpg",".jpeg", ".png",".heic", ".webp", ".avif", ".gif", ".tiff":
@@ -52,7 +61,17 @@ templ ListShareContents(expires time.Time, shareid string, files []File) {
Class: "flex gap-2 items-center dark:text-white",
}) {
@icon.Timer()
- { expires.Format("03:04PM Jan 2") }
+ Expires: { expires.Format("Jan 2, 03:04PM") }
+
}
@@ -97,8 +116,8 @@ templ ListShareContents(expires time.Time, shareid string, files []File) {