diff --git a/backend/templates/files.templ b/backend/templates/files.templ index 9bc02bb..3a6d6c4 100644 --- a/backend/templates/files.templ +++ b/backend/templates/files.templ @@ -6,26 +6,57 @@ import ( "github.com/google/uuid" ) -// FilesTabFragment renders the upload form followed by the file list. -// Called by TabloFilesTabHandler for HTMX requests and embedded in TabloDetailPage -// #tab-content for the "files" tab. +// FilesTabFragment renders the files section with an overview-section layout, +// an "Upload file" button, and either a table of files or an empty state. templ FilesTabFragment(tablo sqlc.Tablo, files []sqlc.TabloFile, csrfToken string) { -
{ file.Filename }
-- { formatBytes(file.SizeBytes) } - if file.CreatedAt.Valid { - { file.CreatedAt.Time.Format("2006-01-02 15:04") } - } -
-Delete file?
-{ file.Filename }
-This cannot be undone.
-