mirror of
http://git.carcosa.net/jmcbray/brutaldon.git
synced 2024-11-27 01:03:51 -05:00
Fix title attribute of image previews -- actually show description
This commit is contained in:
parent
97d263c680
commit
791c1aa88c
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user