From 9485386d8103b9024fd725076c62a1e40deba2b5 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Tue, 21 Jun 2022 00:01:06 +0300 Subject: [PATCH] add updated at date in the footer --- views/comp/page_layout.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/views/comp/page_layout.ts b/views/comp/page_layout.ts index 64460ee..311088d 100644 --- a/views/comp/page_layout.ts +++ b/views/comp/page_layout.ts @@ -30,10 +30,20 @@ function navLink(lhref: string, ctx?: Context): Attrs { return attrs; } +const SERVER_STARTED_AT = new Date(); + export function Footer(ctx: Context): AnyNode { return E("footer", classNames("footer"), [ E("div", classNames("content-width row-sta-bet"), [ - RepoLink(ctx.tr.Source_code, "/pleshevskiy/recipes"), + E("div", classNames("gap-v-1x5"), [ + E("div", [], [ + E("b", [], "Updated At:"), + SERVER_STARTED_AT.toLocaleDateString(), + ]), + E("div", [], [ + RepoLink(ctx.tr.Source_code, "/pleshevskiy/recipes"), + ]), + ]), ChangeLang(ctx), ]), ]);