mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-05-01 00:20:17 -05:00
Add "Created at" column to database list table
This commit is contained in:
@@ -34,6 +34,7 @@ func indexPage() gomponents.Node {
|
||||
html.Th(component.SpanText("Name")),
|
||||
html.Th(component.SpanText("Version")),
|
||||
html.Th(component.SpanText("Connection string")),
|
||||
html.Th(component.SpanText("Created at")),
|
||||
),
|
||||
),
|
||||
html.TBody(
|
||||
|
||||
@@ -9,6 +9,7 @@ import (
|
||||
"github.com/eduardolat/pgbackweb/internal/service/databases"
|
||||
"github.com/eduardolat/pgbackweb/internal/util/echoutil"
|
||||
"github.com/eduardolat/pgbackweb/internal/util/paginateutil"
|
||||
"github.com/eduardolat/pgbackweb/internal/util/timeutil"
|
||||
"github.com/eduardolat/pgbackweb/internal/validate"
|
||||
"github.com/eduardolat/pgbackweb/internal/view/web/component"
|
||||
"github.com/eduardolat/pgbackweb/internal/view/web/htmx"
|
||||
@@ -91,6 +92,9 @@ func listDatabases(
|
||||
),
|
||||
component.SpanText("****************"),
|
||||
),
|
||||
html.Td(component.SpanText(
|
||||
database.CreatedAt.Format(timeutil.LayoutYYYYMMDDHHMMSSPretty),
|
||||
)),
|
||||
))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user