mirror of
https://gitlab.com/brutaldon/brutaldon
synced 2025-06-05 21:49:32 +02:00
Fix title attribute of image previews -- actually show description
This commit is contained in:
@@ -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 %}
|
||||||
|
Reference in New Issue
Block a user