aboutsummaryrefslogtreecommitdiffstats
path: root/templates/latestskweets.html.tera
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2023-01-17 02:31:48 +0000
committerLibravatar cel 🌸 <cel@blos.sm>2023-01-17 02:31:48 +0000
commit26f9dc3ea3f90c23067a96381bba37b28c2a0871 (patch)
tree8f098f151252d165b484752375c9e18a1a2b875b /templates/latestskweets.html.tera
parent57c3a21bce3f4040eefdcc8b57bc86bdc59dacbf (diff)
downloadblossom-26f9dc3ea3f90c23067a96381bba37b28c2a0871.tar.gz
blossom-26f9dc3ea3f90c23067a96381bba37b28c2a0871.tar.bz2
blossom-26f9dc3ea3f90c23067a96381bba37b28c2a0871.zip
implement skweet widget
Diffstat (limited to '')
-rw-r--r--templates/latestskweets.html.tera26
1 files changed, 14 insertions, 12 deletions
diff --git a/templates/latestskweets.html.tera b/templates/latestskweets.html.tera
index bcdc2fa..b2e8979 100644
--- a/templates/latestskweets.html.tera
+++ b/templates/latestskweets.html.tera
@@ -1,19 +1,21 @@
<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="https://s3.eu-west-1.wasabisys.com/skinnyverse/426b13b9-0d01-4dc1-abc9-6dbc1ec8a8a6/bjorkcpu2.png" class="profile">
+ <img src="{{ skweet.account.avatar }}" class="profile">
<div class="skweet-content">
- <div class="skweet-info"><h4>@cel</h4><h5>2h ago</h5></div>
- <p>@nyx @lain ikr? omg we have no choice but to stan our skinny legend</p>
- <div class="skweet-gallery"><img src="https://skinnyver.se/media/22aca0d1-441c-425f-b9b2-7501a29d8e9c/lain_skinny2.png"><img src="https://skinnyver.se/media/4f6344de-b334-417e-b202-f1daf3207986/vlcsnap-2022-06-15-09h55m17s937.png"></div>
- </div>
- </div>
- <div class="skweet">
- <img src="https://s3.eu-west-1.wasabisys.com/skinnyverse/426b13b9-0d01-4dc1-abc9-6dbc1ec8a8a6/bjorkcpu2.png" class="profile">
- <div class="skweet-content">
- <div><h4>@cel</h4><h5>2h ago</h5></div>
- <p>@nyx @lain ikr? omg we have no choice but to stan our skinny legend</p>
- <div class="skweet-gallery"><img src="https://skinnyver.se/media/22aca0d1-441c-425f-b9b2-7501a29d8e9c/lain_skinny2.png"><img src="https://skinnyver.se/media/4f6344de-b334-417e-b202-f1daf3207986/vlcsnap-2022-06-15-09h55m17s937.png"></div>
+ <div class="skweet-info"><h4>{{ skweet.account.username }}</h4><a href="skweet.url"><h5>{{ skweet.created_at | date(format="%Y-%m-%d %H:%M") }}UTC</h5></a></div>
+ <div class="skweet-text">{{ skweet.content }}</div>
+ {% if skweet.media_attachments[0] %}
+ <div class="skweet-gallery">
+ {% for media_attachment in skweet.media_attachments %}
+ <img src="{{ media_attachment.url }}">
+ {% endfor %}
+ </div>
+ {% endif %}
</div>
</div>
+ {% endif %}
+ {% endfor %}
</div> \ No newline at end of file