Source

lindyjam / templates / playlists / single_playlist.html

Full commit
{% extends "base.html" %}

{% block title %}Playlist: {{ playlist }}{% endblock %}

{% block style %}
<link rel="stylesheet" type="text/css" 
      href="/site-media/styles/playlistsstyle.css"/>
{% endblock %}

{% block scripts %}
    <script type="text/javascript"
            src="/site-media/scripts/playlists.js"></script>
{% endblock %}

{% block content %}
    <h1>
        {{ playlist.name }}'{% if not ends %}s{% endif %}
        set on {{ playlist.date|date:"F j, Y" }}
    </h1>
    <table id="playlists_playlist_table">
        <tr class="playlists_playlist_table_header">
            <th>#</th>
            <th>Title</th>
            <th>Artist</th>
            <th>Album</th>
            <th>BPM</th>
        </tr>
    {% for track in playlist.playlisttrack_set.all %}
        <tr class="playlists_playlist_table_entry">
            <td class="playlists_track_num">{{ track.number }}</td>
            <td>{{ track.song.title }}</td>
            <td>{{ track.song.artist }}</td>
            <td>{{ track.song.album }}</td>
            <td>{% if track.song.bpm %}{{ track.song.bpm }}{% endif %}</td>
        </tr>
    {% endfor %}
    </table>
{% endblock %}