2021-01-19 15:13:08 +00:00
|
|
|
{% extends "base.html" %}
|
2021-01-17 15:04:24 +00:00
|
|
|
|
2021-01-19 15:13:08 +00:00
|
|
|
{% block title %}{{ video.name }} - {{ domain }}{% endblock %}
|
2021-01-17 15:04:24 +00:00
|
|
|
|
2021-01-19 15:13:08 +00:00
|
|
|
{% block content %}
|
|
|
|
<h3>{{ video.name }}</h3>
|
|
|
|
By:
|
2021-01-21 22:26:31 +00:00
|
|
|
<a href="/{{ domain }}/video-channels/{{ video.channel.name }}@{{ video.channel.host }}/videos">
|
|
|
|
<b>{{ video.channel.displayName }}</b>
|
|
|
|
</a>
|
|
|
|
<a href="/{{ domain }}/accounts/{{ video.channel.ownerAccount.name }}@{{ video.channel.ownerAccount.host }}/video-channels">
|
|
|
|
({{ video.channel.ownerAccount.name }}@{{ video.channel.ownerAccount.host }})
|
|
|
|
</a>
|
|
|
|
|
2021-01-19 15:13:08 +00:00
|
|
|
<br>
|
|
|
|
{% if video.no_quality_selected and not embed %}
|
|
|
|
<img height="300" src="https://{{ video.channel.host }}{{ video.thumbnailPath }}">
|
|
|
|
<p style="color: red">Please select a resolution:</p>
|
|
|
|
{% elif embed %}
|
2021-01-22 11:18:53 +00:00
|
|
|
<iframe src="https://{{ video.channel.host }}{{ video.embedPath }}" height="300" allowfullscreen="" frameborder="0"></iframe>
|
2021-01-19 15:13:08 +00:00
|
|
|
<br>
|
|
|
|
<b>Resolutions:</b>
|
|
|
|
{% else %}
|
|
|
|
<video height="300" controls>
|
2021-03-24 17:43:50 +00:00
|
|
|
<source src="{{ video.video }}">
|
2021-01-19 15:13:08 +00:00
|
|
|
</video>
|
|
|
|
<br>
|
|
|
|
<b>Resolutions:</b>
|
|
|
|
{% endif %}
|
2021-01-17 15:04:24 +00:00
|
|
|
|
2021-01-19 15:13:08 +00:00
|
|
|
{% for resolution in video.resolutions %}
|
|
|
|
<a href="?quality={{ resolution.id }}">{{ resolution.label }}</a>
|
|
|
|
{% endfor %}
|
|
|
|
<a href="?embed=1">Embedded</a>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
Views: <b>{{ video.views }}</b> Likes: <b>{{ video.likes }}</b> Dislikes: <b>{{ video.dislikes }}</b>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
{{ video.description }}
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td><b>Category</b></td>
|
|
|
|
<td>{{ video.category.label }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><b>License</b></td>
|
|
|
|
<td>{{ video.licence.label }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><b>Language</b></td>
|
|
|
|
<td>{{ video.language.label }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><b>Privacy</b></td>
|
|
|
|
<td>{{ video.privacy.label }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><b>Tags</b></td>
|
|
|
|
<td>
|
2021-03-24 19:27:22 +00:00
|
|
|
{% for tag in video.tags %}
|
|
|
|
<span class="tag">{{ tag }}</span>
|
|
|
|
{% endfor %}
|
2021-01-19 15:13:08 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2021-01-20 20:00:11 +00:00
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<br>
|
2021-01-21 09:30:26 +00:00
|
|
|
{% if video.commentsEnabled %}
|
|
|
|
{{ comments.total }} Comments
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
{% for comment in comments.data %}
|
2021-01-20 20:00:11 +00:00
|
|
|
|
2021-01-21 09:30:26 +00:00
|
|
|
{% if not comment.isDeleted %}
|
2021-01-22 14:04:35 +00:00
|
|
|
<a href="/{{ domain }}/accounts/{{ comment.account.name }}@{{ comment.account.host }}">
|
|
|
|
<b>{{ comment.account.displayName }}</b>
|
|
|
|
</a>
|
|
|
|
|
2021-01-21 09:30:26 +00:00
|
|
|
<br>
|
|
|
|
{{ comment.text }}
|
|
|
|
<br>
|
|
|
|
{% else %}
|
|
|
|
<div style="color: #5F5F5F">
|
|
|
|
<b>Unknown</b>
|
|
|
|
<br>
|
|
|
|
Deleted Comment
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<i>
|
|
|
|
{% if comment.totalReplies == 1 %}
|
|
|
|
1 Reply
|
|
|
|
{% else %}
|
|
|
|
{{ comment.totalReplies }} Replies
|
|
|
|
{% endif %}
|
|
|
|
</i>
|
2021-01-20 20:00:11 +00:00
|
|
|
<br>
|
|
|
|
<br>
|
2021-01-21 09:30:26 +00:00
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
Comments disabled.
|
|
|
|
{% endif %}
|
2021-01-20 20:00:11 +00:00
|
|
|
|
2021-01-19 15:13:08 +00:00
|
|
|
{% endblock %}
|