2013-02-05 14:20:26 -05:00
|
|
|
{# This component assumes it has been placed in a sidebar, and controls options related to playlists. #}
|
2013-02-12 13:24:30 -05:00
|
|
|
{# Additionally, it is assumed that the "playlist_list" has been given to us #}
|
2013-02-05 14:20:26 -05:00
|
|
|
|
|
|
|
<ul class="nav nav-list">
|
|
|
|
<li class="nav-header">Playlists</li>
|
2013-02-12 13:24:30 -05:00
|
|
|
<li><a href="#" data-playlist-name="">All Music</a></li>
|
2013-02-05 15:06:31 -05:00
|
|
|
{% for playlist in playlist_list %}
|
|
|
|
<li><a href="#" data-playlist-name="{{ playlist.name }}">{{ playlist.name }}</a></li>
|
2013-02-05 14:20:26 -05:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2013-02-12 13:24:30 -05:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
//It is safe to use jQuery here, since we placed jQuery at the top of the page
|
|
|
|
</script>
|