Update table names

This commit is contained in:
Luis Eduardo Jeréz Girón
2024-08-14 23:47:41 -06:00
parent 42046d395b
commit 07037f0890
3 changed files with 6 additions and 6 deletions

View File

@@ -2,8 +2,8 @@ package component
import (
"database/sql"
"github.com/eduardolat/pgbackweb/internal/util/strutil"
"github.com/eduardolat/pgbackweb/internal/util/strutil"
"github.com/maragudk/gomponents"
"github.com/maragudk/gomponents/html"
)

View File

@@ -53,7 +53,7 @@ func indexPage(queryData execsQueryData) gomponents.Node {
html.Th(component.SpanText("Started at")),
html.Th(component.SpanText("Finished at")),
html.Th(component.SpanText("Duration")),
html.Th(component.SpanText("Compressed Size")),
html.Th(component.SpanText("File size")),
),
),
html.TBody(

View File

@@ -76,7 +76,7 @@ func showExecutionButton(
),
),
html.Tr(
html.Th(component.SpanText("Started At")),
html.Th(component.SpanText("Started at")),
html.Td(component.SpanText(
execution.StartedAt.Local().Format(timeutil.LayoutYYYYMMDDHHMMSSPretty),
)),
@@ -84,7 +84,7 @@ func showExecutionButton(
gomponents.If(
execution.FinishedAt.Valid,
html.Tr(
html.Th(component.SpanText("Finished At")),
html.Th(component.SpanText("Finished at")),
html.Td(component.SpanText(
execution.FinishedAt.Time.Local().Format(timeutil.LayoutYYYYMMDDHHMMSSPretty),
)),
@@ -102,7 +102,7 @@ func showExecutionButton(
gomponents.If(
execution.DeletedAt.Valid,
html.Tr(
html.Th(component.SpanText("Deleted At")),
html.Th(component.SpanText("Deleted at")),
html.Td(component.SpanText(
execution.DeletedAt.Time.Local().Format(timeutil.LayoutYYYYMMDDHHMMSSPretty),
)),
@@ -111,7 +111,7 @@ func showExecutionButton(
gomponents.If(
execution.FileSize.Valid,
html.Tr(
html.Th(component.SpanText("Compressed Size")),
html.Th(component.SpanText("File size")),
html.Td(component.PrettyFileSize(execution.FileSize)),
),
),