{% extends 'activity/content-layout.html.twig' %}

{% do script(['app/js/activity/audio/index.js']) %}

{% block body %}
  <div class="audio-content" id="audio-content" data-role="audio-content">
    {% if audio.file|default(null) %}
      {{ render(controller('AppBundle:Player:show', {id: audio.mediaId})) }}
    {% else %}
      {% include 'activity/file-not-found.html.twig' with {type:'audio'} %}
    {% endif %}
  </div>
{% endblock %}