fork from github/youtube-local
This commit is contained in:
73
youtube/templates/local_playlist.html
Normal file
73
youtube/templates/local_playlist.html
Normal file
@@ -0,0 +1,73 @@
|
||||
{% set page_title = playlist_name + ' - Local playlist' %}
|
||||
{% extends "base.html" %}
|
||||
{% import "common_elements.html" as common_elements %}
|
||||
{% block style %}
|
||||
main > *{
|
||||
width: 800px;
|
||||
max-width: 100%;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.playlist-metadata{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
|
||||
|
||||
margin: 15px auto;
|
||||
padding: 7px;
|
||||
background-color: var(--interface-color);
|
||||
}
|
||||
.playlist-title{
|
||||
}
|
||||
#export-options{
|
||||
justify-self: end;
|
||||
}
|
||||
|
||||
#video-remove-container{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: 0px auto 15px auto;
|
||||
}
|
||||
#playlist-remove-button{
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#results{
|
||||
display: grid;
|
||||
grid-auto-rows: 0fr;
|
||||
grid-row-gap: 10px;
|
||||
}
|
||||
{% endblock style %}
|
||||
|
||||
{% block main %}
|
||||
<div class="playlist-metadata">
|
||||
<h2 class="playlist-title">{{ playlist_name }}</h2>
|
||||
|
||||
<div id="export-options">
|
||||
<form id="playlist-export" method="post">
|
||||
<select id="export-type" name="export_format">
|
||||
<option value="json">JSON</option>
|
||||
<option value="ids">Video id list (txt)</option>
|
||||
<option value="urls">Video url list (txt)</option>
|
||||
</select>
|
||||
<button type="submit" id="playlist-export-button" name="action" value="export">Export</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<form id="playlist-remove" action="/youtube.com/edit_playlist" method="post" target="_self"></form>
|
||||
<div id="video-remove-container">
|
||||
<button type="submit" name="action" value="remove_playlist" form="playlist-remove" formaction="" onclick="return confirm('You are about to permanently delete {{ playlist_name }}\n\nOnce a playlist is permanently deleted, it cannot be recovered.');">Remove playlist</button>
|
||||
<input type="hidden" name="playlist_page" value="{{ playlist_name }}" form="playlist-edit">
|
||||
<button type="submit" id="playlist-remove-button" name="action" value="remove" form="playlist-edit" formaction="">Remove from playlist</button>
|
||||
</div>
|
||||
<div id="results">
|
||||
{% for video_info in videos %}
|
||||
{{ common_elements.item(video_info) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
<nav class="page-button-row">
|
||||
{{ common_elements.page_buttons(num_pages, '/https://www.youtube.com/playlists/' + playlist_name, parameters_dictionary) }}
|
||||
</nav>
|
||||
{% endblock main %}
|
||||
Reference in New Issue
Block a user