From 4f0c1cfdc2e9350d8da1fb60e023cb5ea6fab827 Mon Sep 17 00:00:00 2001 From: Masahiko AMANO Date: Tue, 7 Jan 2025 16:00:49 +0300 Subject: [PATCH] style(web): add displaying quote creator also prettify datetime in quote snippets --- web/static/js/quotes.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/static/js/quotes.js b/web/static/js/quotes.js index 9e11736..79666da 100644 --- a/web/static/js/quotes.js +++ b/web/static/js/quotes.js @@ -21,7 +21,6 @@ function renderBlockQuote(quote) {

${escapedString(quote.text)}

${escapedString(quote.author)}

-

${quote.datetime}

+
+

${new Date(quote.datetime).toLocaleString()}

+

Добавил ${quote.creator.name}

+
`; }