Add media alt button for video
This commit is contained in:
parent
2e56e8b6ee
commit
7f7d21384e
|
@ -56,6 +56,11 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif file_type == "mov" or file_type == "mp4" %}
|
{% elif file_type == "mov" or file_type == "mp4" %}
|
||||||
<video src="{{ thought.media.url }}" controls class="extended-media"></video>
|
<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 %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue