{% load i18n static ui %}

{% if save.is_youtube_video %}
<div class="mb-0 d-flex justify-content-center">
  <iframe
    allow="accelerometer *; clipboard-write *; encrypted-media *; gyroscope *; picture-in-picture *; web-share *;"
    allowfullscreen
    class="ui-youtube-iframe"
    frameborder="0"
    height="200"
    referrerpolicy="strict-origin"
    scrolling="no"
    src="{{ save|render_youtube_embed_url }}"
    title="YouTube video player"
    width="320"
  >
  </iframe>
</div>
{% endif %}
