56 lines
1.4 KiB
Twig
Executable File
56 lines
1.4 KiB
Twig
Executable File
{% extends 'templates/default.php' %}
|
|
|
|
{% block javascripts %}
|
|
<script type="text/javascript" src="/js/modules/music-player.js"></script>
|
|
<script type="text/javascript" src="/js/music.js"></script>
|
|
{% endblock %}
|
|
|
|
{% block title %}Music{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<header id="music-header" class="row">
|
|
<h1>Music</h1>
|
|
</header>
|
|
|
|
<!-- music player -->
|
|
<section class="row">
|
|
<!-- no javascript warning -->
|
|
<noscript class="card">Woah there, lassy! You will need to enable Javascript to use this page!</noscript>
|
|
|
|
<!-- current album details -->
|
|
<section class="col-sm-5 col-xs-12">
|
|
<div class="thumbnail shadow-1">
|
|
<img src="{{ albums[0].get.album_art }}" alt="{{ albums[0].get.title }}">
|
|
<div class="caption">
|
|
<h3>{{ albums[0].get.title }}</h3>
|
|
{% if albums[0].get.description %}
|
|
<hr />
|
|
<p>{{ albums[0].get.description }}</p>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- current playlist -->
|
|
<section class="card col-sm-7 col-xs-12">
|
|
</section>
|
|
</section>
|
|
|
|
<!-- available albums -->
|
|
<section class="row">
|
|
{% for album in albums %}
|
|
<!-- album details -->
|
|
<div class="col-sm-2 col-xs-6">
|
|
<div class="thumbnail shadow-1">
|
|
<img src="{{ album.get.album_art }}" alt="{{ album.get.title }}">
|
|
<div class="caption">
|
|
<h5>{{ album.get.title }}</h5>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</section>
|
|
|
|
{% endblock %}
|