Commit d4dd05e7 authored by fred's avatar fred

include all available tracks on artist pages

parent d4bc38c4
{% extends "base.html" %}
{% load i18n %}
{% block appbar %}
<h2>Nonstop - Artist: {{ object.name }}</h2>
......@@ -6,6 +7,8 @@
{% block content %}
<h3>{% trans "Most recently played" %}</h3>
<ul class="soma-list">
{% for somalog in object.recent_diffusions|slice:":20" %}
<li><span class="timestamp">{{ somalog.play_timestamp|date:"d/m/Y H:i" }}</span>:
......@@ -15,7 +18,17 @@
{% endif %}
<span class="filepath">{{ somalog.filepath.short }}</span>
</li>
{% empty %}
<li><i>(none)</i></li>
{% endfor %}
</ul>
<h3>{% trans "Available tracks" %}</h3>
<ul>
{% for track in object.track_set.all %}
<li><a href="{{ track.get_absolute_url }}" class="tracktitle">{{ track.title }}</a></li>
{% endfor %}
</ul>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment