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>
|
2022-05-08 11:56:37 +00:00
|
|
|
<div class="image">
|
|
|
|
{% if playlist %}{% next_video playlist object as next %}{% endif %}
|
|
|
|
<video controls poster="{{object.get_thumbnail_url}}" src="{{object.get_video_url}}" width="100%"
|
|
|
|
height="100%" data-current="{{object.id}}" {% if next %}data-next="{{next.id}}" {% endif %}
|
|
|
|
id="videoplayer" autoplay>
|
|
|
|
</div>
|
2022-05-05 16:27:47 +00:00
|
|
|
<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">
|
2022-05-05 16:32:41 +00:00
|
|
|
{% if object.playlist_set.all %}
|
|
|
|
<div class="tags"><span class="meta-heading">Part of Playlists</span>
|
2022-05-08 11:56:37 +00:00
|
|
|
{% for pl in object.playlist_set.all %}
|
|
|
|
<a href="{{pl.get_absolute_url}}">{{pl.title}}</a>
|
2022-05-05 16:32:41 +00:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
{% endif %}
|
2022-05-08 11:56:37 +00:00
|
|
|
{% if object.tags %}
|
2022-05-05 16:27:47 +00:00
|
|
|
<div class="tags"><span class="meta-heading">Tags</span>
|
|
|
|
{% for tag in object.tags %}
|
|
|
|
<a href="#">{{tag}}</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<hr>
|
2022-05-08 11:56:37 +00:00
|
|
|
{% endif %}
|
2022-05-05 16:27:47 +00:00
|
|
|
<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>
|
2022-05-08 11:56:37 +00:00
|
|
|
{% if playlist %}
|
2022-05-05 16:27:47 +00:00
|
|
|
<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>
|
2022-05-08 11:56:37 +00:00
|
|
|
{% endif %}
|
2022-05-05 16:27:47 +00:00
|
|
|
<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>
|
2022-05-08 11:56:37 +00:00
|
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
|
|
<script src="/static/js/nextvideo.js"></script>
|
2022-05-05 16:27:47 +00:00
|
|
|
{% endblock %}
|