Add media alt button for video

This commit is contained in:
Matthias Portzel 2022-05-08 10:13:03 -04:00
parent 2e56e8b6ee
commit 7f7d21384e
1 changed files with 5 additions and 0 deletions

View File

@ -56,6 +56,11 @@
{% endif %}
{% elif file_type == "mov" or file_type == "mp4" %}
<video src="{{ thought.media.url }}" controls class="extended-media"></video>
{% if thought.media_alt %}
<button class="transcript-button">View description</button>
<div class="transcript-label">Description</div>
<div class="transcript">{{ thought.media_alt|urlize }}</div>
{% endif %}
{% endif %}
</div>
{% endif %}