]> git.0d.be Git - django-panik-nonstop.git/commitdiff
templates: add artist link in track sidebar
authorFrédéric Péters <fpeters@0d.be>
Wed, 5 Aug 2020 11:52:30 +0000 (13:52 +0200)
committerFrédéric Péters <fpeters@0d.be>
Wed, 5 Aug 2020 11:53:09 +0000 (13:53 +0200)
nonstop/templates/nonstop/track_detail.html

index e90f79e362b044344b677a26c18d69db3564a331..b6c4a82c32f68eb7742a97167f3edbd8f8aa6fb9 100644 (file)
 
 <h3>{% trans "Metadata" %}</h3>
 
+{% if object.artist %}
+<p>{% trans "Artist:" %}<br><a href="{% url "artist-view" pk=object.artist.id %}">{{ object.artist.name }}</a></p>
+{% endif %}
+
 {% if object.duration %}
 <p>{% trans "Duration:" %} {{object.duration}}</p>
 {% endif %}