biter/templates/tweet.html

22 lines
668 B
HTML
Raw Normal View History

2024-03-13 03:08:52 +03:00
<div class="tweet">
<div class="author">
<span class="name">{{ author }}</span>
2024-03-13 21:48:13 +03:00
<a class="handle" href="{{ author_url }}">@{{ handle }}</a>
2024-03-13 03:08:52 +03:00
</div>
<div class="content">
<p>{{ content|safe }}</p>
{% match image %} {% when Some with (link) %}
<img
src="{{ link }}"
2024-03-13 21:48:13 +03:00
alt="{% match alt %} {% when Some with (text) %} {{ text }} {% when None %}{% endmatch %}"
2024-03-13 03:08:52 +03:00
referrerpolicy="no-referrer"
crossorigin="anonymous"
/>
{% when None %} {% endmatch %} {% for embed in media %}
<br />
<a href="{{ embed }}">embedded media {{ loop.index }}: {{ embed }}</a>
{% endfor %}
</div>
<a class="original-link" href="{{ url }}">View original</a>
</div>