2023-07-15 07:30:36 +00:00
|
|
|
{% extends "base.html" %}
|
2023-07-16 05:56:14 +00:00
|
|
|
{% load static sass_tags compress %}
|
2023-07-15 07:30:36 +00:00
|
|
|
{% block head %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block main %}
|
|
|
|
<div class="content">
|
|
|
|
</div>
|
|
|
|
<div class="add-comment" style="display: none">
|
2023-07-16 05:56:14 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
<textarea name="text" placeholder="your comment"></textarea>
|
|
|
|
{% if false and request.user.is_anonymous %}
|
|
|
|
|
2023-07-15 07:30:36 +00:00
|
|
|
<input name="name" type="text" placeholder="your name"></input>
|
|
|
|
<input name="email" type="email" placeholder="your email"></input>
|
|
|
|
<br>
|
|
|
|
{% endif %}
|
2023-07-16 05:56:14 +00:00
|
|
|
<div class="buttons">
|
|
|
|
<button id="add-comment">Add comment as guest</button>
|
|
|
|
<button>Login</button>
|
|
|
|
</div>
|
|
|
|
<div class="buttons login">
|
|
|
|
<input name="username" type="text" placeholder="your username"></input>
|
|
|
|
<input name="password" type="password" placeholder="your password"></input>
|
|
|
|
<button>Login</button>
|
|
|
|
<button>Register</button>
|
|
|
|
</div>
|
2023-07-15 07:30:36 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
{% block end %}
|
|
|
|
<script>
|
|
|
|
var comments = {{ item.public_comments_json|safe }};
|
|
|
|
</script>
|
2023-07-16 05:56:14 +00:00
|
|
|
{% compress js file m %}
|
2023-07-15 07:30:36 +00:00
|
|
|
<script src="/static/js/utils.js"></script>
|
|
|
|
<script src="/static/js/api.js"></script>
|
|
|
|
<script src="/static/js/icons.js"></script>
|
|
|
|
<script src="/static/js/VideoElement.js"></script>
|
|
|
|
<script src="/static/js/VideoPlayer.js"></script>
|
|
|
|
<script src="/static/js/documents.js"></script>
|
|
|
|
<script src="/static/js/edits.js"></script>
|
|
|
|
<script src="/static/js/item.js"></script>
|
|
|
|
<script src="/static/js/render.js"></script>
|
2023-07-16 05:56:14 +00:00
|
|
|
{% endcompress %}
|
2023-07-15 07:30:36 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
pandora.url = new URL('{{ item.url|escapejs }}');
|
|
|
|
pandora.comment = '{{ item.id | escapejs }}';
|
|
|
|
pandora.hostname = pandora.url.hostname
|
|
|
|
pandoraURL = `https://${pandora.hostname}`
|
|
|
|
</script>
|
|
|
|
<script src="/static/js/overwrite.js"></script>
|
|
|
|
|
|
|
|
<script src="/static/js/main.js"></script>
|
|
|
|
<script src="/static/js/comments.js"></script>
|
|
|
|
{% endblock %}
|