From c24e154bb2b2299c68abbff8356e58008c875dbe Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Tue, 20 Jun 2023 23:04:56 +0100 Subject: improve skweet widget, namely time formatting --- templates/latestskweets.html.tera | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) (limited to 'templates/latestskweets.html.tera') diff --git a/templates/latestskweets.html.tera b/templates/latestskweets.html.tera index d698eea..84798de 100644 --- a/templates/latestskweets.html.tera +++ b/templates/latestskweets.html.tera @@ -3,21 +3,39 @@ {% for skweet in skweets %} {% if not skweet.reblog %}
- +
- +

{{ skweet.username }}

{{ skweet.time_since }} ago
{{ skweet.content }}
{% if skweet.media_attachments[0] %} - +
+ {% elif skweet.reblog %} +
+

boosted:

+
+ +
+

{{ skweet.username }}

{{ skweet.time_since }} ago
+
{{ skweet.content }}
+ {% if skweet.media_attachments[0] %} {% for media_attachment in skweet.media_attachments %} {% if media_attachment.type == "image" %} - + {% elif media_attachment.type == "video" %} {% endif %} {% endfor %} + {% endif %}
- {% endif %}
{% endif %} -- cgit