mirror of
http://git.carcosa.net/jmcbray/brutaldon.git
synced 2024-11-23 15:23:52 -05:00
Rudimentary media display support
This commit is contained in:
parent
9b88a01064
commit
2608b9ddea
@ -19,6 +19,23 @@
|
|||||||
<br>
|
<br>
|
||||||
{{ toot.content | safe }}
|
{{ toot.content | safe }}
|
||||||
</p>
|
</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>
|
</div>
|
||||||
<nav class="level is-mobile">
|
<nav class="level is-mobile">
|
||||||
<div class="level-left">
|
<div class="level-left">
|
||||||
|
Loading…
Reference in New Issue
Block a user