style(web): add displaying quote creator
also prettify datetime in quote snippets
This commit is contained in:
parent
cdd19f7c54
commit
4f0c1cfdc2
@ -21,7 +21,6 @@ function renderBlockQuote(quote) {
|
||||
<div>
|
||||
<p class="text-lg font-[Playfair_Display] mb-2">${escapedString(quote.text)}</p>
|
||||
<p class="text-sm text-gray-800">${escapedString(quote.author)}</p>
|
||||
<p class="text-xs text-gray-400 mt-2">${quote.datetime}</p>
|
||||
</div>
|
||||
<div class="flex gap-2">
|
||||
<button class="text-gray-600 hover:text-custom" onclick="quoteEdit('${quote.id}');">
|
||||
@ -32,6 +31,10 @@ function renderBlockQuote(quote) {
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-full flex justify-between items-center flex-wrap gap-1 mt-2">
|
||||
<p class="text-xs text-gray-400">${new Date(quote.datetime).toLocaleString()}</p>
|
||||
<p class="text-xs text-gray-400">Добавил ${quote.creator.name}</p>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user