mirror of
https://git.waldn.net/git/knotteye/satyr.git
synced 2025-09-05 11:35:57 +00:00
Add VOD management page and the ability to delete the user's own vods
This commit is contained in:
14
templates/managevods.njk
Normal file
14
templates/managevods.njk
Normal 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}}">
|
||||
 <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 %}
|
@ -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 %}
|
||||
|
Reference in New Issue
Block a user