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/base.html.tera | 2 +- templates/latestskweets.html.tera | 28 +++++++++++++++++++++++----- 2 files changed, 24 insertions(+), 6 deletions(-) (limited to 'templates') diff --git a/templates/base.html.tera b/templates/base.html.tera index b48109c..081e0a1 100644 --- a/templates/base.html.tera +++ b/templates/base.html.tera @@ -40,7 +40,7 @@
  • girlblog
  • projetos
  • 音
  • -
  • écoute
  • +
  • écoute
  • video
  • 🔴ライブ
  • pix
  • 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