|
@@ -1,6 +1,7 @@
|
|
|
{% extends "base.html" %}
|
|
|
{% load humanize %}
|
|
|
{% load static %}
|
|
|
+{% load thumbnail %}
|
|
|
|
|
|
{% block head_extra %}
|
|
|
<style>
|
|
@@ -107,7 +108,7 @@
|
|
|
<div class="caption">#1 {{artists.0.name}}</div>
|
|
|
{% if artists.0 %}
|
|
|
{% if artists.0.thumbnail %}
|
|
|
- <a href="{{artists.0.get_absolute_url}}"><img lt="{{artists.0.name}}" src="{{artists.0.thumbnail.url}}" width="300px"></a>
|
|
|
+ {% thumbnail artists.0.thumbnail "300x" as im %}<a href="{{artists.0.get_absolute_url}}"><img lt="{{artists.0.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{artists.0.get_absolute_url}}"><img lt="{{artists.0.name}}" src="{% static "images/not-found.jpg" %}" width="300px"></a>
|
|
|
{% endif %}
|
|
@@ -120,7 +121,7 @@
|
|
|
<div class="caption-medium">#2 {{artists.1.name}}</div>
|
|
|
{% if artists.1 %}
|
|
|
{% if artists.1.thumbnail %}
|
|
|
- <a href="{{artists.1.get_absolute_url}}"><img lt="{{artists.1.name}}" src="{{artists.1.thumbnail.url}}" width="150px"></a>
|
|
|
+ {% thumbnail artists.1.thumbnail "150" as im %}<a href="{{artists.1.get_absolute_url}}"><img lt="{{artists.1.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{artists.1.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="150px"></a>
|
|
|
{% endif %}
|
|
@@ -130,7 +131,7 @@
|
|
|
<div class="caption-medium">#3 {{artists.2.name}}</div>
|
|
|
{% if artists.2 %}
|
|
|
{% if artists.2.thumbnail %}
|
|
|
- <a href="{{artists.2.get_absolute_url}}"><img src="{{artists.2.thumbnail.url}}" width="150px"></a>
|
|
|
+ {% thumbnail artists.2.thumbnail "150" as im %}<a href="{{artists.2.get_absolute_url}}"><img lt="{{artists.2.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{artists.2.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="150px"></a>
|
|
|
{% endif %}
|
|
@@ -140,7 +141,7 @@
|
|
|
<div class="caption-medium">#4 {{artists.3.name}}</div>
|
|
|
{% if artists.3 %}
|
|
|
{% if artists.3.thumbnail %}
|
|
|
- <a href="{{artists.3.get_absolute_url}}"><img src="{{artists.3.thumbnail.url}}" width="150px"></a>
|
|
|
+ {% thumbnail artists.3.thumbnail "150" as im %}<a href="{{artists.3.get_absolute_url}}"><img lt="{{artists.3.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{artists.3.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="150px"></a>
|
|
|
{% endif %}
|
|
@@ -150,7 +151,7 @@
|
|
|
<div class="caption-medium">#5 {{artists.4.name}}</div>
|
|
|
{% if artists.4 %}
|
|
|
{% if artists.4.thumbnail %}
|
|
|
- <a href="{{artists.4.get_absolute_url}}"><img src="{{artists.4.thumbnail.url}}" width="150px"></a>
|
|
|
+ {% thumbnail artists.4.thumbnail "150" as im %}<a href="{{artists.4.get_absolute_url}}"><img lt="{{artists.4.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{artists.4.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="150px"></a>
|
|
|
{% endif %}
|
|
@@ -164,7 +165,7 @@
|
|
|
<div class="caption-small">#6 {{artists.5.name}}</div>
|
|
|
{% if artists.5 %}
|
|
|
{% if artists.5.thumbnail %}
|
|
|
- <a href="{{artists.5.get_absolute_url}}"><img src="{{artists.5.thumbnail.url}}" width="100px"></a>
|
|
|
+ {% thumbnail artists.5.thumbnail "100" as im %}<a href="{{artists.5.get_absolute_url}}"><img lt="{{artists.5.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{artists.5.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="100px"></a>
|
|
|
{% endif %}
|
|
@@ -174,7 +175,7 @@
|
|
|
<div class="caption-small">#7 {{artists.6.name}}</div>
|
|
|
{% if artists.6 %}
|
|
|
{% if artists.6.thumbnail %}
|
|
|
- <a href="{{artists.6.get_absolute_url}}"><img src="{{artists.6.thumbnail.url}}" width="100px"></a>
|
|
|
+ {% thumbnail artists.6.thumbnail "100" as im %}<a href="{{artists.6.get_absolute_url}}"><img lt="{{artists.6.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{artists.6.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="100px"></a>
|
|
|
{% endif %}
|
|
@@ -184,7 +185,7 @@
|
|
|
<div class="caption-small">#8 {{artists.7.name}}</div>
|
|
|
{% if artists.7 %}
|
|
|
{% if artists.7.thumbnail %}
|
|
|
- <a href="{{artists.7.get_absolute_url}}"><img src="{{artists.7.thumbnail.url}}" width="100px"></a>
|
|
|
+ {% thumbnail artists.7.thumbnail "100" as im %}<a href="{{artists.7.get_absolute_url}}"><img lt="{{artists.7.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{artists.7.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="100px"></a>
|
|
|
{% endif %}
|
|
@@ -194,7 +195,7 @@
|
|
|
<div class="caption-small">#9 {{artists.8.name}}</div>
|
|
|
{% if artists.8 %}
|
|
|
{% if artists.8.thumbnail %}
|
|
|
- <a href="{{artists.8.get_absolute_url}}"><img src="{{artists.8.thumbnail.url}}" width="100px"></a>
|
|
|
+ {% thumbnail artists.8.thumbnail "100" as im %}<a href="{{artists.8.get_absolute_url}}"><img lt="{{artists.8.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{artists.8.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="100px"></a>
|
|
|
{% endif %}
|
|
@@ -204,7 +205,7 @@
|
|
|
<div class="caption-small">#10 {{artists.9.name}}</div>
|
|
|
{% if artists.9 %}
|
|
|
{% if artists.9.thumbnail %}
|
|
|
- <a href="{{artists.9.get_absolute_url}}"><img src="{{artists.9.thumbnail.url}}" width="100px"></a>
|
|
|
+ {% thumbnail artists.9.thumbnail "100" as im %}<a href="{{artists.9.get_absolute_url}}"><img lt="{{artists.9.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{artists.9.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="100px"></a>
|
|
|
{% endif %}
|
|
@@ -214,7 +215,7 @@
|
|
|
<div class="caption-small">#11 {{artists.10.name}}</div>
|
|
|
{% if artists.10 %}
|
|
|
{% if artists.10.thumbnail %}
|
|
|
- <a href="{{artists.10.get_absolute_url}}"><img src="{{artists.10.thumbnail.url}}" width="100px"></a>
|
|
|
+ {% thumbnail artists.10.thumbnail "100" as im %}<a href="{{artists.10.get_absolute_url}}"><img lt="{{artists.10.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{artists.10.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="100px"></a>
|
|
|
{% endif %}
|
|
@@ -224,7 +225,7 @@
|
|
|
<div class="caption-small">#12 {{artists.11.name}}</div>
|
|
|
{% if artists.11 %}
|
|
|
{% if artists.11.thumbnail %}
|
|
|
- <a href="{{artists.11.get_absolute_url}}"><img src="{{artists.11.thumbnail.url}}" width="100px"></a>
|
|
|
+ {% thumbnail artists.11.thumbnail "100" as im %}<a href="{{artists.11.get_absolute_url}}"><img lt="{{artists.11.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{artists.11.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="100px"></a>
|
|
|
{% endif %}
|
|
@@ -234,7 +235,7 @@
|
|
|
<div class="caption-small">#13 {{artists.12.name}}</div>
|
|
|
{% if artists.12 %}
|
|
|
{% if artists.12.thumbnail %}
|
|
|
- <a href="{{artists.12.get_absolute_url}}"><img src="{{artists.12.thumbnail.url}}" width="100px"></a>
|
|
|
+ {% thumbnail artists.12.thumbnail "100" as im %}<a href="{{artists.12.get_absolute_url}}"><img lt="{{artists.12.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{artists.12.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="100px"></a>
|
|
|
{% endif %}
|
|
@@ -278,7 +279,7 @@
|
|
|
<div class="caption">#1 {{tracks.0.title}}</div>
|
|
|
{% if tracks.0 %}
|
|
|
{% if tracks.0.album.cover_image %}
|
|
|
- <a href="{{tracks.0.get_absolute_url}}"><img src="{{tracks.0.album.cover_image.url}}" width="300px"></a>
|
|
|
+ {% thumbnail tracks.0.album.cover_image "300" as im %}<a href="{{tracks.0.get_absolute_url}}"><img lt="{{tracks.0.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{tracks.0.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="300px"></a>
|
|
|
{% endif %}
|
|
@@ -291,7 +292,7 @@
|
|
|
<div class="caption-medium">#2 {{tracks.1.title}}</div>
|
|
|
{% if tracks.1 %}
|
|
|
{% if tracks.1.album.cover_image %}
|
|
|
- <a href="{{tracks.1.get_absolute_url}}"><img src="{{tracks.1.album.cover_image.url}}" width="150px"></a>
|
|
|
+ {% thumbnail tracks.1.album.cover_image "150" as im %}<a href="{{tracks.1.get_absolute_url}}"><img lt="{{tracks.1.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{tracks.1.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="150px"></a>
|
|
|
{% endif %}
|
|
@@ -301,7 +302,7 @@
|
|
|
<div class="caption-medium">#3 {{tracks.2.title}}</div>
|
|
|
{% if tracks.2 %}
|
|
|
{% if tracks.2.album.cover_image %}
|
|
|
- <a href="{{tracks.2.get_absolute_url}}"><img src="{{tracks.2.album.cover_image.url}}" width="150px"></a>
|
|
|
+ {% thumbnail tracks.2.album.cover_image "150" as im %}<a href="{{tracks.2.get_absolute_url}}"><img lt="{{tracks.2.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{tracks.2.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="150px"></a>
|
|
|
{% endif %}
|
|
@@ -311,7 +312,7 @@
|
|
|
<div class="caption-medium">#4 {{tracks.3.title}}</div>
|
|
|
{% if tracks.3 %}
|
|
|
{% if tracks.3.album.cover_image %}
|
|
|
- <a href="{{tracks.3.get_absolute_url}}"><img src="{{tracks.3.album.cover_image.url}}" width="150px"></a>
|
|
|
+ {% thumbnail tracks.3.album.cover_image "150" as im %}<a href="{{tracks.3.get_absolute_url}}"><img lt="{{tracks.3.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{tracks.3.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="150px"></a>
|
|
|
{% endif %}
|
|
@@ -321,7 +322,7 @@
|
|
|
<div class="caption-medium">#5 {{tracks.4.title}}</div>
|
|
|
{% if tracks.4 %}
|
|
|
{% if tracks.4.album.cover_image %}
|
|
|
- <a href="{{tracks.4.get_absolute_url}}"><img src="{{tracks.4.album.cover_image.url}}" width="150px"></a>
|
|
|
+ {% thumbnail tracks.4.album.cover_image "150" as im %}<a href="{{tracks.4.get_absolute_url}}"><img lt="{{tracks.4.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{tracks.4.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="150px"></a>
|
|
|
{% endif %}
|
|
@@ -335,7 +336,7 @@
|
|
|
<div class="caption-small">#6 {{tracks.5.title}}</div>
|
|
|
{% if tracks.5 %}
|
|
|
{% if tracks.5.album.cover_image %}
|
|
|
- <a href="{{tracks.5.get_absolute_url}}"><img src="{{tracks.5.album.cover_image.url}}" width="100px"></a>
|
|
|
+ {% thumbnail tracks.5.album.cover_image "100" as im %}<a href="{{tracks.5.get_absolute_url}}"><img lt="{{tracks.5.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{tracks.5.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="100px"></a>
|
|
|
{% endif %}
|
|
@@ -345,7 +346,7 @@
|
|
|
<div class="caption-small">#7 {{tracks.6.title}}</div>
|
|
|
{% if tracks.6 %}
|
|
|
{% if tracks.6.album.cover_image %}
|
|
|
- <a href="{{tracks.6.get_absolute_url}}"><img src="{{tracks.6.album.cover_image.url}}" width="100px"></a>
|
|
|
+ {% thumbnail tracks.6.album.cover_image "100" as im %}<a href="{{tracks.6.get_absolute_url}}"><img lt="{{tracks.6.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{tracks.6.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="100px"></a>
|
|
|
{% endif %}
|
|
@@ -355,7 +356,7 @@
|
|
|
<div class="caption-small">#8 {{tracks.7.title}}</div>
|
|
|
{% if tracks.7 %}
|
|
|
{% if tracks.7.album.cover_image %}
|
|
|
- <a href="{{tracks.7.get_absolute_url}}"><img src="{{tracks.7.album.cover_image.url}}" width="100px"></a>
|
|
|
+ {% thumbnail tracks.7.album.cover_image "100" as im %}<a href="{{tracks.7.get_absolute_url}}"><img lt="{{tracks.7.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{tracks.7.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="100px"></a>
|
|
|
{% endif %}
|
|
@@ -365,7 +366,7 @@
|
|
|
<div class="caption-small">#9 {{tracks.8.title}}</div>
|
|
|
{% if tracks.8 %}
|
|
|
{% if tracks.8.album.cover_image %}
|
|
|
- <a href="{{tracks.8.get_absolute_url}}"><img src="{{tracks.8.album.cover_image.url}}" width="100px"></a>
|
|
|
+ {% thumbnail tracks.8.album.cover_image "100" as im %}<a href="{{tracks.8.get_absolute_url}}"><img lt="{{tracks.8.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{tracks.8.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="100px"></a>
|
|
|
{% endif %}
|
|
@@ -375,7 +376,7 @@
|
|
|
<div class="caption-small">#10 {{tracks.9.title}}</div>
|
|
|
{% if tracks.9 %}
|
|
|
{% if tracks.9.album.cover_image %}
|
|
|
- <a href="{{tracks.9.get_absolute_url}}"><img src="{{tracks.9.album.cover_image.url}}" width="100px"></a>
|
|
|
+ {% thumbnail tracks.9.album.cover_image "100" as im %}<a href="{{tracks.9.get_absolute_url}}"><img lt="{{tracks.9.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{tracks.9.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="100px"></a>
|
|
|
{% endif %}
|
|
@@ -385,7 +386,7 @@
|
|
|
<div class="caption-small">#11 {{tracks.10.title}}</div>
|
|
|
{% if tracks.10 %}
|
|
|
{% if tracks.10.album.cover_image %}
|
|
|
- <a href="{{tracks.10.get_absolute_url}}"><img src="{{tracks.10.album.cover_image.url}}" width="100px"></a>
|
|
|
+ {% thumbnail tracks.10.album.cover_image "100" as im %}<a href="{{tracks.10.get_absolute_url}}"><img lt="{{tracks.10.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{tracks.10.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="100px"></a>
|
|
|
{% endif %}
|
|
@@ -395,7 +396,7 @@
|
|
|
<div class="caption-small">#12 {{tracks.11.title}}</div>
|
|
|
{% if tracks.11 %}
|
|
|
{% if tracks.11.album.cover_image %}
|
|
|
- <a href="{{tracks.11.get_absolute_url}}"><img src="{{tracks.11.album.cover_image.url}}" width="100px"></a>
|
|
|
+ {% thumbnail tracks.11.album.cover_image "100" as im %}<a href="{{tracks.11.get_absolute_url}}"><img lt="{{tracks.11.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{tracks.11.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="100px"></a>
|
|
|
{% endif %}
|
|
@@ -405,7 +406,7 @@
|
|
|
<div class="caption-small">#13 {{tracks.12.title}}</div>
|
|
|
{% if tracks.12 %}
|
|
|
{% if tracks.12.album.cover_image %}
|
|
|
- <a href="{{tracks.12.get_absolute_url}}"><img src="{{tracks.12.album.cover_image.url}}" width="100px"></a>
|
|
|
+ {% thumbnail tracks.12.album.cover_image "100" as im %}<a href="{{tracks.12.get_absolute_url}}"><img lt="{{tracks.12.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{tracks.12.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="100px"></a>
|
|
|
{% endif %}
|
|
@@ -415,7 +416,7 @@
|
|
|
<div class="caption-small">#14 {{tracks.13.title}}</div>
|
|
|
{% if tracks.13 %}
|
|
|
{% if tracks.13.album.cover_image %}
|
|
|
- <a href="{{tracks.13.get_absolute_url}}"><img src="{{tracks.13.album.cover_image.url}}" width="100px"></a>
|
|
|
+ {% thumbnail tracks.13.album.cover_image "100" as im %}<a href="{{tracks.13.get_absolute_url}}"><img lt="{{tracks.13.name}}" src="{{im.url}}" width="{{im.width}}" height="{{im.height}}"></a>{% endthumbnail %}
|
|
|
{% else %}
|
|
|
<a href="{{tracks.13.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="100px"></a>
|
|
|
{% endif %}
|
|
@@ -471,7 +472,9 @@
|
|
|
<tr>
|
|
|
<td>{{scrobble.timestamp|naturaltime}}</td>
|
|
|
{% if scrobble.track.album.cover_image %}
|
|
|
- <td><a href="{{scrobble.track.album.get_absolute_url}}"><img src="{{scrobble.track.album.cover_image.url}}" width=25 height=25 style="border:1px solid black;" /></aa></td>
|
|
|
+ {% thumbnail scrobble.track.album.cover_image "25" as im %}
|
|
|
+ <td><a href="{{scrobble.track.album.get_absolute_url}}"><img src="{{im.url}}" width={{im.width}} height={{im.height}} style="border:1px solid black;" /></aa></td>
|
|
|
+ {% endthumbnail %}
|
|
|
{% else %}
|
|
|
<td><a href="{{scrobble.track.album.get_absolute_url}}">{{scrobble.track.album.name}}</a></td>
|
|
|
{% endif %}
|