artist_detail.html 1.18 KB
Newer Older
fred's avatar
fred committed
1
{% extends "base.html" %}
2
{% load i18n %}
fred's avatar
fred committed
3 4 5 6 7

{% block appbar %}
<h2>Nonstop - Artist: {{ object.name }}</h2>
{% endblock %}

8 9 10 11 12
{% block more-user-links %}
{{ block.super }}
<a href="{% url 'nonstop-quick-links' %}">Gestion nonstop</a>
{% endblock %}

fred's avatar
fred committed
13 14
{% block content %}

15 16
<h3>{% trans "Most recently played" %}</h3>

fred's avatar
fred committed
17
<ul class="soma-list">
fred's avatar
fred committed
18
    {% for somalog in object.recent_diffusions|slice:":20" %}
fred's avatar
fred committed
19 20 21 22 23 24 25
        <li><span class="timestamp">{{ somalog.play_timestamp|date:"d/m/Y 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">(<a href="{{ somalog.filepath.track.artist.get_absolute_url }}" class="trackartist">{{ somalog.filepath.track.artist.name }}</a>)</span>
            {% endif %}
            <span class="filepath">{{ somalog.filepath.short }}</span>
</li>
26 27
    {% empty %}
    <li><i>(none)</i></li>
fred's avatar
fred committed
28 29 30
    {% endfor %}
</ul>

31 32 33 34 35 36 37 38
<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>

fred's avatar
fred committed
39
{% endblock %}