Skip to content

Commit 1c78b37

Browse files
authored
Merge pull request #4 from SarahJaine/amara-video
added display of amara video for captioning and transcript services
2 parents f5b6944 + 6dacdbf commit 1c78b37

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

sarahjaine/templates/work_detail.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@ <h1 class="heading--page-uber-fancy">{{ happy_chat|random}}&nbsp;{{ project.name
2727
<h2 class="heading--sub">{{ project.subtitle_1 }}</h2>
2828
<p>{{ project.paragraph_1|linebreaks }}</p>
2929
{% endif %}
30-
31-
{% if project.video %}
30+
31+
{% if project.name == "ISL Fun Fund" and project.video %}
32+
<div class="global--thumbnail">
33+
<span class="amara-embed" data-show-subtitles-default="true" data-width="740px" data-height="400px" data-resizable="true" data-url="http://vimeo.com/181975388" alt="{{ project.video_alt }}">
34+
</span>
35+
</div>
36+
{% elif project.video %}
3237
<div class="global--thumbnail">
3338
<video poster="{{ project.video_image.url }}" controls width="100%">
3439
<source src="{{ project.video.url }}" type="video/mp4" alt="{{ project.video_alt }}">
@@ -90,4 +95,6 @@ <h2 class="heading--sub">{{ project.subtitle_3 }}</h2>
9095
</main>
9196
{% include 'partials/footer_bar.html' %}
9297

98+
<script type="text/javascript" src='https://amara.org/embedder-iframe'>
99+
</script>
93100
{% endblock %}

0 commit comments

Comments
 (0)