Rudimentary media display support

This commit is contained in:
Jason McBrayer 2018-04-23 22:01:37 -04:00
parent 9b88a01064
commit 2608b9ddea

View File

@ -19,6 +19,23 @@
<br>
{{ toot.content | safe }}
</p>
{% if toot.media_attachments %}
<div class="level">
<div class="level-left">
{% for media in toot.media_attachments %}
<a class="level-item" href="{{ media.url }}">
<img src="{{ media.preview_url }}" alt="
{% if media.text_url %}
{{ media.text_url }}
{% else %}
{{ media.url }}
{% endif %}"
class="image is-128x128">
</a>
{% endfor %}
</div>
</div>
{% endif %}
</div>
<nav class="level is-mobile">
<div class="level-left">