aboutsummaryrefslogtreecommitdiff
path: root/pkg/tpl/quote.templ
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-10-07 01:06:55 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-10-07 01:18:35 +0300
commit420e049415c8ec7f7a209a03110eecbe0c83e9e0 (patch)
treee93f7faf8c9704daa24c2653ca50b4f222fa2305 /pkg/tpl/quote.templ
parent0617918eb941c401b687d4a0dbc2a54c19e06fd1 (diff)
Мелкие правки
Diffstat (limited to 'pkg/tpl/quote.templ')
-rw-r--r--pkg/tpl/quote.templ17
1 files changed, 13 insertions, 4 deletions
diff --git a/pkg/tpl/quote.templ b/pkg/tpl/quote.templ
index 58c0d4f..34429d1 100644
--- a/pkg/tpl/quote.templ
+++ b/pkg/tpl/quote.templ
@@ -8,13 +8,22 @@ import (
templ Quote(quote *model.Quote) {
<article>
- <header><a href={ templ.URL(fmt.Sprintf("/quote/%d", quote.ID)) }>#{ strconv.Itoa(int(quote.ID)) }</a></header>
+ <header>
+ <a href={ templ.URL(fmt.Sprintf("/quote/%d", quote.ID)) }>#{ strconv.Itoa(int(quote.ID)) }</a>
+ <span><abbr title="Добавлено на сайт">{ quote.CreatedAt.Format("02.01.06") }</abbr></span>
+ </header>
@templ.Raw(quote.Text())
<footer>
- Поделиться:&nbsp;
- <a target="_blank" href={ templ.URL(fmt.Sprintf("https://t.me/share/url?url=https://sh.org.ru/quote/%d", quote.ID)) }><i class="fa fa-telegram" aria-hidden="true"></i></a>&nbsp;
- <a target="_blank" href={ templ.URL(fmt.Sprintf("https://vk.com/share.php?url=https://sh.org.ru/quote/%d", quote.ID)) }><i class="fa fa-vk" aria-hidden="true"></i></a>&nbsp;
+ <span>
+ <a target="_blank" href={ templ.URL(fmt.Sprintf("https://t.me/share/url?url=https://sh.org.ru/quote/%d", quote.ID)) }><i class="fa fa-telegram" aria-hidden="true"></i></a>&nbsp;&middot;&nbsp
+ <a target="_blank" href={ templ.URL(fmt.Sprintf("https://vk.com/share.php?url=https://sh.org.ru/quote/%d", quote.ID)) }><i class="fa fa-vk" aria-hidden="true"></i></a>&nbsp;&middot;&nbsp
<a target="_blank" href={ templ.URL(fmt.Sprintf("https://connect.ok.ru/offer?url=https://sh.org.ru/quote/%d", quote.ID)) }><i class="fa fa-odnoklassniki-square" aria-hidden="true"></i></a>
+ </span>
+ <span>
+ if quote.Archive {
+ <abbr title="Цитата из старого цитатника">Архив</abbr>
+ }
+ </span>
</footer>
</article>
}