let jinja create the transcript <details> element

This commit is contained in:
zrose584
2020-09-12 10:51:01 +02:00
parent 537a8e8ab5
commit 57978485ee
2 changed files with 17 additions and 17 deletions

View File

@@ -590,6 +590,20 @@ Reload without invidious (for usage of new identity button).</a>
</div>
{% endif %}
{% if subtitle_sources %}
<details id="transcript-box">
<summary>Transcript</summary>
<div>
<select id="select-tt">
{% for source in subtitle_sources %}
<option>{{ source['label'] }}</option>
{% endfor %}
</select>
<table id="transcript-table"></table>
</div>
</details>
{% endif %}
{% if settings.related_videos_mode != 0 %}
<details class="related-videos-outer" {{'open' if settings.related_videos_mode == 1 else ''}}>
<summary>Related Videos</summary>