Changeset View
Changeset View
Standalone View
Standalone View
common/templates/common/components/attachments/file_video.html
| {% if is_processing %} | {% if is_processing %} | ||||
| <p>Content is processing</p> | <p>Content is processing</p> | ||||
| {% else %} | {% else %} | ||||
| {% if caption %} | {% if caption %} | ||||
| {% if link %} | {% if link %} | ||||
| {% if link == 'self' %} | {% if link == 'self' %} | ||||
| <figure class="figure blog-video {{ class }}"> | <figure class="figure blog-video {{ class }}"> | ||||
| {% include 'common/components/video_player.html' with url=static_asset.video.default_variation_url poster=static_asset.thumbnail_m_url rounded=True %} | {% include 'common/components/video_player.html' with url=static_asset.video.default_variation_url poster=static_asset.thumbnail_m_url rounded=True %} | ||||
| <figcaption class="figure-caption">{{ caption }} <a href="{{ static_asset.source.url }}" target="_blank">[File]</a> | <figcaption class="figure-caption">{{ caption }} <a href="{{ static_asset.source.url }}" target="_blank">[File]</a> | ||||
| </figcaption> | </figcaption> | ||||
| </figure> | </figure> | ||||
| {% else %} | {% else %} | ||||
| <figure class="figure blog-video {{ class }}"> | <figure class="figure blog-video {{ class }}"> | ||||
| {% include 'common/components/video_player.html' with url=static_asset.video.default_variation_url poster=static_asset.thumbnail_m_url rounded=True %} | {% include 'common/components/video_player.html' with url=static_asset.video.default_variation_url poster=static_asset.thumbnail_m_url rounded=True %} | ||||
| <figcaption class="figure-caption">{{ caption }} <a href="{{ link }}" target="_blank">[ View File ]</a></figcaption> | <figcaption class="figure-caption">{{ caption }} <a href="{{ link }}" target="_blank">[ View File ]</a></figcaption> | ||||
| </figure> | </figure> | ||||
| {% endif %} | {% endif %} | ||||
| {% else %} | {% else %} | ||||
| <figure class="figure blog-video {{ class }}"> | <figure class="figure blog-video {{ class }}"> | ||||
| {% include 'common/components/video_player.html' with url=static_asset.video.default_variation_url poster=static_asset.thumbnail_m_url rounded=True %} | {% include 'common/components/video_player.html' with url=static_asset.video.default_variation_url poster=static_asset.thumbnail_m_url rounded=True %} | ||||
| <figcaption class="figure-caption">{{ caption }}</figcaption> | <figcaption class="figure-caption">{{ caption }}</figcaption> | ||||
| </figure> | </figure> | ||||
| {% endif %} | {% endif %} | ||||
| {% else %} | {% else %} | ||||
| {% firstof class|default:""|add:" img-fluid blog-video" as classes %} | {% firstof class|default:""|add:" img-fluid blog-video" as classes %} | ||||
| {% if link %} | {% if link %} | ||||
| {% if link == 'self' %} | {% if link == 'self' %} | ||||
| <figure class="figure blog-video {{ class }}"> | <figure class="figure blog-video {{ class }}"> | ||||
| {% include 'common/components/video_player.html' with url=static_asset.video.default_variation_url poster=static_asset.thumbnail_m_url rounded=True %} | {% include 'common/components/video_player.html' with url=static_asset.video.default_variation_url poster=static_asset.thumbnail_m_url rounded=True %} | ||||
| <figcaption class="figure-caption"><a href="{{ static_asset.source.url }}" target="_blank">[ View File ]</a></figcaption> | <figcaption class="figure-caption"><a href="{{ static_asset.source.url }}" target="_blank">[ View File ]</a></figcaption> | ||||
| </figure> | </figure> | ||||
| {% else %} | {% else %} | ||||
| <figure class="figure blog-video {{ class }}"> | <figure class="figure blog-video {{ class }}"> | ||||
| {% include 'common/components/video_player.html' with url=static_asset.video.default_variation_url poster=static_asset.thumbnail_m_url rounded=True %} | {% include 'common/components/video_player.html' with url=static_asset.video.default_variation_url poster=static_asset.thumbnail_m_url rounded=True %} | ||||
| <figcaption class="figure-caption"><a href="{{ link }}" target="_blank">[ View File ]</a></figcaption> | <figcaption class="figure-caption"><a href="{{ link }}" target="_blank">[ View File ]</a></figcaption> | ||||
| </figure> | </figure> | ||||
| {% endif %} | {% endif %} | ||||
| {% else %} | {% else %} | ||||
| {% include 'common/components/video_player.html' with url=static_asset.video.default_variation_url poster=static_asset.thumbnail_m_url rounded=True %} | {% include 'common/components/video_player.html' with url=static_asset.video.default_variation_url poster=static_asset.thumbnail_m_url rounded=True %} | ||||
| {% endif %} | {% endif %} | ||||
| {% endif %} | {% endif %} | ||||
| {% endif %} | {% endif %} | ||||