aboutsummaryrefslogtreecommitdiffstats
path: root/templates/latestskweets.html
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2024-01-30 16:16:05 +0000
committerLibravatar cel 🌸 <cel@blos.sm>2024-01-30 16:16:05 +0000
commitf00159f53b3774601500ec65345791311ff6efa1 (patch)
treecc65a487e71a056126e1935108a494c7851863f9 /templates/latestskweets.html
parent8c03d9a53f4bc2f70fb5c1e0487bc74fe0137fcb (diff)
downloadblossom-f00159f53b3774601500ec65345791311ff6efa1.tar.gz
blossom-f00159f53b3774601500ec65345791311ff6efa1.tar.bz2
blossom-f00159f53b3774601500ec65345791311ff6efa1.zip
migrate to poem and askama
Diffstat (limited to 'templates/latestskweets.html')
-rw-r--r--templates/latestskweets.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/templates/latestskweets.html b/templates/latestskweets.html
new file mode 100644
index 0000000..84798de
--- /dev/null
+++ b/templates/latestskweets.html
@@ -0,0 +1,44 @@
+<div class="panel" id="skinnyverse">
+ <h2><a id="latest-skweets" href="https://skinnyver.se/cel">latest skweets</a></h2>
+ {% for skweet in skweets %}
+ {% if not skweet.reblog %}
+ <div class="skweet">
+ <img src="{{ skweet.avatar }}" class="profile">
+ <div class="skweet-content">
+ <div class="skweet-info"><h4>{{ skweet.username }}</h4><a href="{{ skweet.url }}" target="_blank" rel="noopener noreferrer"><h5>{{ skweet.time_since }} ago</h5></a></div>
+ <div class="skweet-text">{{ skweet.content }}</div>
+ {% if skweet.media_attachments[0] %}
+ {% for media_attachment in skweet.media_attachments %}
+ {% if media_attachment.type == "image" %}
+ <a href="{{ media_attachment.url }}"><img src="{{ media_attachment.url }}"></a>
+ {% elif media_attachment.type == "video" %}
+ <video controls src="{{ media_attachment.url }}"></video>
+ {% endif %}
+ {% endfor %}
+ {% endif %}
+ </div>
+ </div>
+ {% elif skweet.reblog %}
+ <div class="boosted-skweet">
+ <h4>boosted:</h4>
+ <div class="skweet">
+ <img src="{{ skweet.avatar }}" class="profile">
+ <div class="skweet-content">
+ <div class="skweet-info"><h4>{{ skweet.username }}</h4><a href="{{ skweet.url }}" target="_blank" rel="noopener noreferrer"><h5>{{ skweet.time_since }} ago</h5></a></div>
+ <div class="skweet-text">{{ skweet.content }}</div>
+ {% if skweet.media_attachments[0] %}
+ {% for media_attachment in skweet.media_attachments %}
+ {% if media_attachment.type == "image" %}
+ <a href="{{ media_attachment.url }}"><img src="{{ media_attachment.url }}"></a>
+ {% elif media_attachment.type == "video" %}
+ <video controls src="{{ media_attachment.url }}"></video>
+ {% endif %}
+ {% endfor %}
+ {% endif %}
+ </div>
+ </div>
+ </div>
+ {% endif %}
+ {% endfor %}
+</div>
+