|
@@ -6,11 +6,18 @@
|
|
{% block lists %}
|
|
{% block lists %}
|
|
|
|
|
|
<div class="row">
|
|
<div class="row">
|
|
- {% for album in artist.album_set.all %}
|
|
|
|
- {% if album.cover_image %}
|
|
|
|
- <p style="width:150px; float:left;"><img src="{{album.cover_image.url}}" width=150 height=150 /></p>
|
|
|
|
|
|
+
|
|
|
|
+ {% if object.thumbnail %}
|
|
|
|
+ <p style="float:left; width:302px; padding:0; border: 1px solid #ccc">
|
|
|
|
+ <img src="{{artist.thumbnail.url}}" width=300 height=300 />
|
|
|
|
+ </p>
|
|
|
|
+ {% else %}
|
|
|
|
+ {% if object.album_set.first.cover_image %}
|
|
|
|
+ <p style="float:left; width:302px; padding:0; border: 1px solid #ccc">
|
|
|
|
+ <img src="{{object.album_set.first.cover_image.url}}" width=300 height=300 />
|
|
|
|
+ </p>
|
|
|
|
+ {% endif %}
|
|
{% endif %}
|
|
{% endif %}
|
|
- {% endfor %}
|
|
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="row">
|
|
<p>{{artist.scrobbles.count}} scrobbles</p>
|
|
<p>{{artist.scrobbles.count}} scrobbles</p>
|
|
@@ -25,6 +32,7 @@
|
|
<tr>
|
|
<tr>
|
|
<th scope="col">Rank</th>
|
|
<th scope="col">Rank</th>
|
|
<th scope="col">Track</th>
|
|
<th scope="col">Track</th>
|
|
|
|
+ <th scope="col">Album</th>
|
|
<th scope="col">Count</th>
|
|
<th scope="col">Count</th>
|
|
<th scope="col"></th>
|
|
<th scope="col"></th>
|
|
</tr>
|
|
</tr>
|
|
@@ -33,7 +41,8 @@
|
|
{% for track in object.tracks %}
|
|
{% for track in object.tracks %}
|
|
<tr>
|
|
<tr>
|
|
<td>{{rank}}#1</td>
|
|
<td>{{rank}}#1</td>
|
|
- <td>{{track.title}}</td>
|
|
|
|
|
|
+ <td><a href="{{track.get_absolute_url}}">{{track.title}}</a></td>
|
|
|
|
+ <td><a href="{{track.album.get_absolute_url}}">{{track.album}}</a></td>
|
|
<td>{{track.scrobble_count}}</td>
|
|
<td>{{track.scrobble_count}}</td>
|
|
<td>
|
|
<td>
|
|
<div class="progress-bar" style="margin-right:5px;">
|
|
<div class="progress-bar" style="margin-right:5px;">
|
|
@@ -63,8 +72,8 @@
|
|
{% for scrobble in object.scrobbles %}
|
|
{% for scrobble in object.scrobbles %}
|
|
<tr>
|
|
<tr>
|
|
<td>{{scrobble.timestamp}}</td>
|
|
<td>{{scrobble.timestamp}}</td>
|
|
- <td>{{scrobble.track.title}}</td>
|
|
|
|
- <td>{{scrobble.track.album.name}}</td>
|
|
|
|
|
|
+ <td><a href="{{scrobble.track.get_absolute_url}}">{{scrobble.track.title}}</a></td>
|
|
|
|
+ <td><a href="{{scrobble.track.album.get_absolute_url}}">{{scrobble.track.album.name}}</a></td>
|
|
</tr>
|
|
</tr>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</tbody>
|
|
</tbody>
|