Skip to content

Commit

Permalink
added display of amara video for captioning and transcipt services
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahJaine committed Dec 4, 2016
1 parent f5b6944 commit 6dacdbf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions sarahjaine/templates/work_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ <h1 class="heading--page-uber-fancy">{{ happy_chat|random}}&nbsp;{{ project.name
<h2 class="heading--sub">{{ project.subtitle_1 }}</h2>
<p>{{ project.paragraph_1|linebreaks }}</p>
{% endif %}

{% if project.video %}

{% if project.name == "ISL Fun Fund" and project.video %}
<div class="global--thumbnail">
<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 }}">
</span>
</div>
{% elif project.video %}
<div class="global--thumbnail">
<video poster="{{ project.video_image.url }}" controls width="100%">
<source src="{{ project.video.url }}" type="video/mp4" alt="{{ project.video_alt }}">
Expand Down Expand Up @@ -90,4 +95,6 @@ <h2 class="heading--sub">{{ project.subtitle_3 }}</h2>
</main>
{% include 'partials/footer_bar.html' %}

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

0 comments on commit 6dacdbf

Please sign in to comment.