mirror of
http://git.carcosa.net/jmcbray/brutaldon.git
synced 2024-11-27 09:10:08 -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">
|
<div class="level-left">
|
||||||
{% for media in toot.media_attachments %}
|
{% for media in toot.media_attachments %}
|
||||||
<a class="level-item" href="{{ media.url }}">
|
<a class="level-item" href="{{ media.url }}">
|
||||||
<img src="{{ media.preview_url }}" alt="
|
<img src="{{ media.preview_url }}"
|
||||||
{% if media.text_url %}
|
alt="{% if media.description %}
|
||||||
|
{{ media.description }}
|
||||||
|
{% elif media.text_url %}
|
||||||
{{ media.text_url }}
|
{{ media.text_url }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ media.url }}
|
{{ media.url }}
|
||||||
{% endif %}"
|
{% endif %}"
|
||||||
|
{% if media.description %}
|
||||||
|
title="{{ media.description }}"
|
||||||
|
{% endif %}
|
||||||
class="image is-128x128">
|
class="image is-128x128">
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user