blossom/templates/latestskweets.html.tera

27 lines
1.0 KiB
Plaintext
Raw Normal View History

2023-01-15 21:43:21 +00:00
<div class="panel" id="skinnyverse">
<h2><a id="latest-skweets" href="https://skinnyver.se/cel">latest skweets</a></h2>
2023-01-17 02:31:48 +00:00
{% for skweet in skweets %}
{% if not skweet.reblog %}
2023-01-17 00:48:57 +00:00
<div class="skweet">
2023-01-17 02:31:48 +00:00
<img src="{{ skweet.account.avatar }}" class="profile">
2023-01-17 00:48:57 +00:00
<div class="skweet-content">
2023-02-16 13:08:17 +00:00
<div class="skweet-info"><h4>{{ skweet.account.username }}</h4><a href="{{ skweet.url }}" target="_blank" rel="noopener noreferrer"><h5>{{ skweet.created_at | date(format="%Y-%m-%d %H:%M") }}UTC</h5></a></div>
2023-01-17 02:31:48 +00:00
<div class="skweet-text">{{ skweet.content }}</div>
{% if skweet.media_attachments[0] %}
<div class="skweet-gallery">
{% for media_attachment in skweet.media_attachments %}
2023-02-16 13:08:17 +00:00
{% if media_attachment.type == "image" %}
2023-01-17 02:31:48 +00:00
<img src="{{ media_attachment.url }}">
2023-02-16 13:08:17 +00:00
{% elif media_attachment.type == "video" %}
<video controls src="{{ media_attachment.url }}"></video>
{% endif %}
2023-01-17 02:31:48 +00:00
{% endfor %}
</div>
{% endif %}
2023-01-15 21:43:21 +00:00
</div>
</div>
2023-01-17 02:31:48 +00:00
{% endif %}
{% endfor %}
2023-02-16 13:08:17 +00:00
</div>