Fix title attribute of image previews -- actually show description

This commit is contained in:
Jason McBrayer 2018-04-24 09:58:42 -04:00
parent 97d263c680
commit 791c1aa88c
1 changed files with 8 additions and 3 deletions

View File

@ -39,12 +39,17 @@
<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 %}
<img src="{{ media.preview_url }}"
alt="{% if media.description %}
{{ media.description }}
{% elif media.text_url %}
{{ media.text_url }}
{% else %}
{{ media.url }}
{% endif %}"
{% endif %}"
{% if media.description %}
title="{{ media.description }}"
{% endif %}
class="image is-128x128">
</a>
{% endfor %}