mirror of
https://github.com/bspeice/Melodia
synced 2025-07-02 06:15:55 -04:00
Enable playlist listing, fix various javascript errors
This commit is contained in:
@ -6,8 +6,10 @@ from django.template import RequestContext
|
||||
from django.shortcuts import render_to_response, redirect
|
||||
|
||||
#Melodia-specific utilities
|
||||
from web_utils import json_response as json
|
||||
import web_utils
|
||||
|
||||
@login_required
|
||||
def main(request):
|
||||
return render_to_response("index", context_instance = RequestContext(request))
|
||||
return render_to_response("index", context_instance = RequestContext(request,
|
||||
web_utils.template_resources()
|
||||
))
|
||||
|
@ -74,7 +74,6 @@ List of block elements in this page:
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
{# General scripts #}
|
||||
{% block scripts %}
|
||||
@ -94,4 +93,6 @@ List of block elements in this page:
|
||||
{% endblock %}
|
||||
</script>
|
||||
{% endblock %}{# endblock scripts #}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
<ul class="nav nav-list">
|
||||
<li class="nav-header">Playlists</li>
|
||||
{% for playlist in Playlist.objects.all %}
|
||||
<li>{{ playlist.name }}</li>
|
||||
{% for playlist in playlist_list %}
|
||||
<li><a href="#" data-playlist-name="{{ playlist.name }}">{{ playlist.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user