steeldonutcollection/templates/frontend/video.html

57 lines
2.3 KiB
HTML
Raw Normal View History

2022-05-05 15:40:57 +00:00
{% extends "frontend/base.html" %}
{% load random %}
2022-05-05 16:27:47 +00:00
{% load playlists %}
2022-05-05 15:40:57 +00:00
{% block content %}
2022-05-05 16:27:47 +00:00
<section class="portfolio-block project">
<div class="container">
<div class="heading">
<h2>{{object.title}}</h2>
</div>
<div class="image"><video controls poster="{{object.get_thumbnail_url}}" src="{{object.get_video_url}}"
width="100%" height="100%"></div>
<div class="row">
<div class="col-12 col-md-6 offset-md-1 info">
<h3>Description</h3>
<p>{{object.description|linebreaksbr}}</p>
</div>
<div class="col-12 col-md-3 offset-md-1 meta">
<div class="tags"><span class="meta-heading">Tags</span>
{% for tag in object.tags %}
<a href="#">{{tag}}</a>
{% endfor %}
</div>
<hr>
<div class="tags"><span class="meta-heading">Date</span>
{{ object.published.date }}
2022-05-05 15:40:57 +00:00
</div>
2022-05-05 16:27:47 +00:00
</div>
</div>
{% for playlist in object.playlist_set.all %}
<div class="more-projects">
<h3 class="text-center">Other videos in {{playlist.title}}</h3>
<div class="row gallery">
{% other_videos playlist object as suggestions %}
{% for video in suggestions %}
<div class="col-md-4 col-lg-3">
<div class="item"><a href="{{video.get_absolute_url}}"><img class="img-fluid scale-on-hover"
src="{{video.get_thumbnail_url}}">{{video.title}}</a></div>
2022-05-05 15:40:57 +00:00
</div>
2022-05-05 16:27:47 +00:00
{% endfor %}
</div>
</div>
{% endfor %}
<div class="more-projects">
<h3 class="text-center">Random Videos</h3>
<div class="row gallery">
{% random_videos as suggestions %}
{% for video in suggestions %}
<div class="col-md-4 col-lg-3">
<div class="item"><a href="{{video.get_absolute_url}}"><img class="img-fluid scale-on-hover"
src="{{video.get_thumbnail_url}}">{{video.title}}</a></div>
2022-05-05 15:40:57 +00:00
</div>
2022-05-05 16:27:47 +00:00
{% endfor %}
2022-05-05 15:40:57 +00:00
</div>
2022-05-05 16:27:47 +00:00
</div>
</div>
</section>
{% endblock %}