Add VOD management page and the ability to delete the user's own vods

This commit is contained in:
knotteye
2020-06-27 08:34:09 -05:00
parent 0b4a7d6321
commit 4628deec1c
4 changed files with 66 additions and 6 deletions

14
templates/managevods.njk Normal file
View File

@ -0,0 +1,14 @@
{% extends "base.njk" %}
{% block content %}
<h3>Manage Your VODs</h3>
<form action="/api/user/vods/delete" method="POST" target="responseFrame">
{% asyncEach vid in list%}
<input type="checkbox" id="{{vid.name}}" name="vlist[]" value="{{vid.name}}">
&nbsp<label for="{{vid.name}}">{{vid.name}}</label><p></p>
{% else %}
No recordings found!
{% endeach %}
<input type="submit" value="Delete">
</form>
<iframe name="responseFrame" border="0" frameborder="0" style="display: inline;"></iframe>
{% endblock %}

View File

@ -1,6 +1,7 @@
{% extends "base.njk" %}
{% block content %}
<h3>{{ user }}'s VODs</h3>
{% if auth.name == user %}<span style="font-size: small;"><a href="/vods/{{user}}/manage">Manage</a> your vods.</br></span><p></p>{% endif %}
{% asyncEach vid in list%}
<a href="/live/{{ user }}/{{ vid.name }}">{{ vid.name }}</a></br></br>
{% else %}