Fix the playlist_sidebar, change JQuery location

master
Bradlee Speice 2013-02-12 13:24:30 -05:00
parent 5c538d395e
commit 7286281e14
2 changed files with 30 additions and 23 deletions

View File

@ -2,15 +2,15 @@
List of block elements in this page:
page_title
scripts
global_scripts
page_scripts
navbar_title
navbar_content
sidebar
sidebar_content
body
body_content
scripts
global_scripts
page_scripts
{% endcomment %}
@ -27,6 +27,27 @@ List of block elements in this page:
padding-top: 60px; /* Make sure that there is a gap on the navbar. */
}
</style>
{# General scripts #}
{% block scripts %}
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery.min.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery-ui.min.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/bootstrap.min.js"></script>
{% block global_scripts %}
<script type="text/javascript">
{# Scripts used globally go here. #}
</script>
{% endblock %}
<script type="text/javascript">
{% block page_scripts %}
{# This block is used by each page if they want to add additional scripts. #}
{% endblock %}
</script>
{% endblock %}{# endblock scripts #}
</head>
<body>
@ -75,24 +96,5 @@ List of block elements in this page:
</div>
</div>
{# General scripts #}
{% block scripts %}
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery.min.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery-ui.min.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/bootstrap.min.js"></script>
{% block global_scripts %}
<script type="text/javascript">
{# Scripts used globally go here. #}
</script>
{% endblock %}
<script type="text/javascript">
{% block page_scripts %}
{# This block is used by each page if they want to add additional scripts. #}
{% endblock %}
</script>
{% endblock %}{# endblock scripts #}
</body>
</html>

View File

@ -1,9 +1,14 @@
{# This component assumes it has been placed in a sidebar, and controls options related to playlists. #}
{# Additionally, it is assumed that the "playlist_list" has been given to us #}
<ul class="nav nav-list">
<li class="nav-header">Playlists</li>
<li><a href="#" data-playlist-name="">All Music</a></li>
{% for playlist in playlist_list %}
<li><a href="#" data-playlist-name="{{ playlist.name }}">{{ playlist.name }}</a></li>
{% endfor %}
</ul>
<script type="text/javascript">
//It is safe to use jQuery here, since we placed jQuery at the top of the page
</script>