aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/playlist.html
blob: 994523e4ee6d0de659fad73b44df3ec7c2d816bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{% set page_title = title|string + ' - Page ' + parameters_dictionary.get('page', '1') %}
{% extends "base.html" %}
{% import "common_elements.html" as common_elements %}
{% block style %}
    <link href="/youtube.com/static/message_box.css" rel="stylesheet">
    <link href="/youtube.com/static/playlist.css" rel="stylesheet">
{% endblock style %}

{% block main %}

    <div class="playlist-metadata">
        <div class="author">
            <img alt="{{ title }}" src="{{ thumbnail }}">
            <h2>{{ title }}</h2>
        </div>
        <div class="summary">
            <a class="playlist-author" href="{{ author_url }}">{{ author }}</a>
        </div>
        <div class="playlist-stats">
            <div>{{ video_count|commatize }} videos</div>
            <div>{{ view_count|commatize }} views</div>
            <div>Last updated {{ time_published }}</div>
        </div>
    </div>
    <hr/>


    <div id="results" class="video-container">
        {% for info in video_list %}
            {{ common_elements.item(info) }}
        {% endfor %}
    </div>
    <hr/>

    <footer class="pagination-container">
        <nav class="pagination-list">
            {{ common_elements.page_buttons(num_pages, '/https://www.youtube.com/playlist', parameters_dictionary) }}
        </nav>
    </footer>

{% endblock main %}