]> git.0d.be Git - django-panik-nonstop.git/blobdiff - nonstop/templates/nonstop/somalogline_archive_day.html
templates: add proper markup for appbar action buttons
[django-panik-nonstop.git] / nonstop / templates / nonstop / somalogline_archive_day.html
index 843063a97adb7b3257e57da4e5fe8f3258ab5f9a..bffa01fbb9cca2b3e77a72181e8017ecc438887c 100644 (file)
@@ -1,30 +1,40 @@
 {% extends "base.html" %}
 
+{% block page-title %}Panik DB - Playlist {{ day|date:"d/m/Y" }}{% endblock %}
+
 {% block appbar %}
 <h2>Nonstop - {{ day|date:"d/m/Y" }}</h2>
+<span class="actions"><a href="csv">export CSV</a></span>
+{% endblock %}
+
+{% block more-user-links %}
+{{ block.super }}
+<a href="{% url 'nonstop-quick-links' %}">Gestion nonstop</a>
 {% endblock %}
 
 {% block content %}
 
+<div class="section">
 <ul class="soma-list">
     {% for somalog in object_list %}
-        <li><span class="timestamp">{{ somalog.play_timestamp|date:"H:i" }}</span>:
-            {% if somalog.filepath.track %}
-            <a href="{{ somalog.filepath.track.get_absolute_url }}" class="tracktitle">{{ somalog.filepath.track.title }}</a>
-            <span class="trackartist">({{ somalog.filepath.track.artist.name }})</span>
+        <li class="on-air-{{ somalog.on_air }}"><span class="timestamp">{{ somalog.play_timestamp|date:"H:i" }}</span>:
+            {% if somalog.get_track %}
+            <a href="{{ somalog.get_track.get_absolute_url }}" class="tracktitle">{{ somalog.get_track.title }}</a>
+            <span class="trackartist">(<a href="{{ somalog.get_track.artist.get_absolute_url }}" class="trackartist">{{ somalog.get_track.artist.name }}</a>)</span>
             {% endif %}
             <span class="filepath">{{ somalog.filepath.short }}</span>
 </li>
     {% endfor %}
 </ul>
+</div>
 
 <p>
     {% if previous_day %}
-        Previous Day: {{ previous_day }}
+        <a href="{% url 'archive_day' year=previous_day.year month=previous_day.month day=previous_day.day %}">Previous Day</a>
     {% endif %}
     {% if previous_day and next_day %}--{% endif %}
     {% if next_day %}
-        Next Day: {{ next_day }}
+        <a href="{% url 'archive_day' year=next_day.year month=next_day.month day=next_day.day %}">Next Day</a>
     {% endif %}
 </p>