Revert "First run at adding thumbnailing to images"
This reverts commit c00343abfe.
This commit is contained in:
@ -101,7 +101,6 @@ INSTALLED_APPS = [
|
||||
"django.contrib.humanize",
|
||||
"django_filters",
|
||||
"django_extensions",
|
||||
"sorl.thumbnail",
|
||||
"storages",
|
||||
"taggit",
|
||||
"rest_framework.authtoken",
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
{% load mathfilters %}
|
||||
{% load static %}
|
||||
{% load naturalduration %}
|
||||
{% load thumbnail %}
|
||||
|
||||
{% block title %}{{object.title}}{% endblock %}
|
||||
|
||||
@ -11,11 +10,9 @@
|
||||
<div class="row">
|
||||
|
||||
{% if object.cover%}
|
||||
{% thumbnail object.cover "400" as im %}
|
||||
<p style="float:left; width:{{im.width}}px; padding:0; border: 1px solid #ccc">
|
||||
<img src="{{im.url}}" width={{im.width}} height={{im.height}}/>
|
||||
<p style="float:left; width:402px; padding:0; border: 1px solid #ccc">
|
||||
<img src="{{object.cover.url}}" width=400 />
|
||||
</p>
|
||||
{% endthumbnail %}
|
||||
{% endif %}
|
||||
<div style="float:left; width:600px; margin-left:10px; ">
|
||||
{% if object.summary %}
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
{% extends "base_list.html" %}
|
||||
{% load mathfilters %}
|
||||
{% load static %}
|
||||
{% load thumbnail %}
|
||||
|
||||
{% block title %}{{object.name}}{% endblock %}
|
||||
|
||||
@ -10,11 +9,9 @@
|
||||
<div class="row">
|
||||
|
||||
{% if object.cover_image %}
|
||||
{% thumbnail object.cover_image "300x300" as im %}
|
||||
<p style="float:left; width:{{im.width}}px; padding:0;">
|
||||
<img src="{{im.url}}" width={{im.width}} height={{im.height}} />
|
||||
<p style="float:left; width:302px; padding:0;">
|
||||
<img src="{{object.cover_image.url}}" width=300 height=300 />
|
||||
</p>
|
||||
{% endthumbnail %}
|
||||
{% endif %}
|
||||
<div style="float:left; width:600px; margin-left:10px; ">
|
||||
{% if object.theaudiodb_description %}
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
{% extends "base_list.html" %}
|
||||
{% load mathfilters %}
|
||||
{% load static %}
|
||||
{% load thumbnail %}
|
||||
|
||||
{% block title %}{{object.name}}{% endblock %}
|
||||
|
||||
@ -9,11 +8,9 @@
|
||||
<div class="row">
|
||||
|
||||
{% if object.thumbnail %}
|
||||
{% thumbnail object.thumbnail "300x300" as im %}
|
||||
<p style="float:left; width:{{im.width}}; margin-right:10px;">
|
||||
<img style="border:1px solid #ccc;" src="{{im.url}}" width={{im.width}} height={{im.height}} />
|
||||
<p style="float:left; width:300px; margin-right:10px;">
|
||||
<img style="border:1px solid #ccc;" src="{{artist.thumbnail.url}}" width=300 height=300 />
|
||||
</p>
|
||||
{% endthumbnail %}
|
||||
{% else %}
|
||||
{% if object.album_set.first.cover_image %}
|
||||
<p style="float:left; width:302px; padding:0; border: 1px solid #ccc">
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
{% extends "base_list.html" %}
|
||||
{% load thumbnail %}
|
||||
|
||||
{% block title %}Long Plays{% endblock %}
|
||||
|
||||
@ -24,13 +23,9 @@
|
||||
<dl>
|
||||
<dt><a href="{{media.get_absolute_url}}">{{media.title}}</a></dt>
|
||||
{% if media.hltb_cover %}
|
||||
{% thumbnail media.hltb_cover "200" as im %}
|
||||
<dd><a href="{{media.get_absolute_url}}"><img src="{{im.url}}" width={{im.width}} height={{im.height}} /></a></dd>
|
||||
{% endthumbnail %}
|
||||
<dd><a href="{{media.get_absolute_url}}"><img src="{{media.hltb_cover.url}}" width=200 height=200 /></a></dd>
|
||||
{% else %}
|
||||
{% thumbnail media.cover "200" as im %}
|
||||
<dd><a href="{{media.get_absolute_url}}"><img src="{{im.url}}" width={{im.width}} height={{im.height}} /></a></dd>
|
||||
{% endthumbnail %}
|
||||
<dd><a href="{{media.get_absolute_url}}"><img src="{{media.cover.url}}" style="width: 200px; height: 200px; object-fit:cover; " /></a></dd>
|
||||
{% endif %}
|
||||
<dd>
|
||||
{% if media.is_long_play_in_progress %}Playing{% else %}<a type="button" class="btn btn-sm btn-primary" href="{{media.get_start_url}}">Resume</a>{% endif %}
|
||||
@ -77,16 +72,12 @@
|
||||
{% for media in completed %}
|
||||
{% if media.hltb_cover %}
|
||||
<dl>
|
||||
{% thumbnail media.hltb_cover "200" as im %}
|
||||
<dd><a href="{{media.get_absolute_url}}"><img src="{{im.url}}" width={{im.width}} height={{im.height}} /></a></dd>
|
||||
{% endthumbnail %}
|
||||
<dd><a href="{{media.get_absolute_url}}"><img src="{{media.hltb_cover.url}}" width=200 /></a></dd>
|
||||
<dt><a href="{{media.get_absolute_url}}">{{media.title}}</a></dt>
|
||||
</dl>
|
||||
{% elif media.cover %}
|
||||
<dl>
|
||||
{% thumbnail media.cover "200" as im %}
|
||||
<dd><a href="{{media.get_absolute_url}}"><img src="{{url}}" width={{im.width}} height={{im.height}} /></a></dd>
|
||||
{% endthumbnail %}
|
||||
<dd><a href="{{media.get_absolute_url}}"><img src="{{media.cover.url}}" width=200 /></a></dd>
|
||||
<dt><a href="{{media.get_absolute_url}}">{{media.title}}</a></dt>
|
||||
</dl>
|
||||
{% endif %}
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
{% load humanize %}
|
||||
{% load static %}
|
||||
{% load thumbnail %}
|
||||
|
||||
{% block head_extra %}
|
||||
<style>
|
||||
@ -108,7 +107,7 @@
|
||||
<div class="caption">#1 {{artists.0.name}}</div>
|
||||
{% if artists.0 %}
|
||||
{% if artists.0.thumbnail %}
|
||||
{% 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 %}
|
||||
<a href="{{artists.0.get_absolute_url}}"><img lt="{{artists.0.name}}" src="{{artists.0.thumbnail.url}}" width="300px"></a>
|
||||
{% else %}
|
||||
<a href="{{artists.0.get_absolute_url}}"><img lt="{{artists.0.name}}" src="{% static "images/not-found.jpg" %}" width="300px"></a>
|
||||
{% endif %}
|
||||
@ -121,7 +120,7 @@
|
||||
<div class="caption-medium">#2 {{artists.1.name}}</div>
|
||||
{% if artists.1 %}
|
||||
{% if artists.1.thumbnail %}
|
||||
{% 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 %}
|
||||
<a href="{{artists.1.get_absolute_url}}"><img lt="{{artists.1.name}}" src="{{artists.1.thumbnail.url}}" width="150px"></a>
|
||||
{% else %}
|
||||
<a href="{{artists.1.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="150px"></a>
|
||||
{% endif %}
|
||||
@ -131,7 +130,7 @@
|
||||
<div class="caption-medium">#3 {{artists.2.name}}</div>
|
||||
{% if artists.2 %}
|
||||
{% if artists.2.thumbnail %}
|
||||
{% 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 %}
|
||||
<a href="{{artists.2.get_absolute_url}}"><img src="{{artists.2.thumbnail.url}}" width="150px"></a>
|
||||
{% else %}
|
||||
<a href="{{artists.2.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="150px"></a>
|
||||
{% endif %}
|
||||
@ -141,7 +140,7 @@
|
||||
<div class="caption-medium">#4 {{artists.3.name}}</div>
|
||||
{% if artists.3 %}
|
||||
{% if artists.3.thumbnail %}
|
||||
{% 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 %}
|
||||
<a href="{{artists.3.get_absolute_url}}"><img src="{{artists.3.thumbnail.url}}" width="150px"></a>
|
||||
{% else %}
|
||||
<a href="{{artists.3.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="150px"></a>
|
||||
{% endif %}
|
||||
@ -151,7 +150,7 @@
|
||||
<div class="caption-medium">#5 {{artists.4.name}}</div>
|
||||
{% if artists.4 %}
|
||||
{% if artists.4.thumbnail %}
|
||||
{% 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 %}
|
||||
<a href="{{artists.4.get_absolute_url}}"><img src="{{artists.4.thumbnail.url}}" width="150px"></a>
|
||||
{% else %}
|
||||
<a href="{{artists.4.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="150px"></a>
|
||||
{% endif %}
|
||||
@ -165,7 +164,7 @@
|
||||
<div class="caption-small">#6 {{artists.5.name}}</div>
|
||||
{% if artists.5 %}
|
||||
{% if artists.5.thumbnail %}
|
||||
{% 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 %}
|
||||
<a href="{{artists.5.get_absolute_url}}"><img src="{{artists.5.thumbnail.url}}" width="100px"></a>
|
||||
{% else %}
|
||||
<a href="{{artists.5.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="100px"></a>
|
||||
{% endif %}
|
||||
@ -175,7 +174,7 @@
|
||||
<div class="caption-small">#7 {{artists.6.name}}</div>
|
||||
{% if artists.6 %}
|
||||
{% if artists.6.thumbnail %}
|
||||
{% 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 %}
|
||||
<a href="{{artists.6.get_absolute_url}}"><img src="{{artists.6.thumbnail.url}}" width="100px"></a>
|
||||
{% else %}
|
||||
<a href="{{artists.6.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="100px"></a>
|
||||
{% endif %}
|
||||
@ -185,7 +184,7 @@
|
||||
<div class="caption-small">#8 {{artists.7.name}}</div>
|
||||
{% if artists.7 %}
|
||||
{% if artists.7.thumbnail %}
|
||||
{% 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 %}
|
||||
<a href="{{artists.7.get_absolute_url}}"><img src="{{artists.7.thumbnail.url}}" width="100px"></a>
|
||||
{% else %}
|
||||
<a href="{{artists.7.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="100px"></a>
|
||||
{% endif %}
|
||||
@ -195,7 +194,7 @@
|
||||
<div class="caption-small">#9 {{artists.8.name}}</div>
|
||||
{% if artists.8 %}
|
||||
{% if artists.8.thumbnail %}
|
||||
{% 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 %}
|
||||
<a href="{{artists.8.get_absolute_url}}"><img src="{{artists.8.thumbnail.url}}" width="100px"></a>
|
||||
{% else %}
|
||||
<a href="{{artists.8.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="100px"></a>
|
||||
{% endif %}
|
||||
@ -205,7 +204,7 @@
|
||||
<div class="caption-small">#10 {{artists.9.name}}</div>
|
||||
{% if artists.9 %}
|
||||
{% if artists.9.thumbnail %}
|
||||
{% 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 %}
|
||||
<a href="{{artists.9.get_absolute_url}}"><img src="{{artists.9.thumbnail.url}}" width="100px"></a>
|
||||
{% else %}
|
||||
<a href="{{artists.9.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="100px"></a>
|
||||
{% endif %}
|
||||
@ -215,7 +214,7 @@
|
||||
<div class="caption-small">#11 {{artists.10.name}}</div>
|
||||
{% if artists.10 %}
|
||||
{% if artists.10.thumbnail %}
|
||||
{% 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 %}
|
||||
<a href="{{artists.10.get_absolute_url}}"><img src="{{artists.10.thumbnail.url}}" width="100px"></a>
|
||||
{% else %}
|
||||
<a href="{{artists.10.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="100px"></a>
|
||||
{% endif %}
|
||||
@ -225,7 +224,7 @@
|
||||
<div class="caption-small">#12 {{artists.11.name}}</div>
|
||||
{% if artists.11 %}
|
||||
{% if artists.11.thumbnail %}
|
||||
{% 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 %}
|
||||
<a href="{{artists.11.get_absolute_url}}"><img src="{{artists.11.thumbnail.url}}" width="100px"></a>
|
||||
{% else %}
|
||||
<a href="{{artists.11.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="100px"></a>
|
||||
{% endif %}
|
||||
@ -235,7 +234,7 @@
|
||||
<div class="caption-small">#13 {{artists.12.name}}</div>
|
||||
{% if artists.12 %}
|
||||
{% if artists.12.thumbnail %}
|
||||
{% 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 %}
|
||||
<a href="{{artists.12.get_absolute_url}}"><img src="{{artists.12.thumbnail.url}}" width="100px"></a>
|
||||
{% else %}
|
||||
<a href="{{artists.12.get_absolute_url}}"><img src="{% static "images/not-found.jpg" %}" width="100px"></a>
|
||||
{% endif %}
|
||||
@ -279,7 +278,7 @@
|
||||
<div class="caption">#1 {{tracks.0.title}}</div>
|
||||
{% if tracks.0 %}
|
||||
{% if tracks.0.album.cover_image %}
|
||||
{% 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 %}
|
||||
<a href="{{tracks.0.get_absolute_url}}"><img src="{{tracks.0.album.cover_image.url}}" width="300px"></a>
|
||||
{% else %}
|
||||
<a href="{{tracks.0.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="300px"></a>
|
||||
{% endif %}
|
||||
@ -292,7 +291,7 @@
|
||||
<div class="caption-medium">#2 {{tracks.1.title}}</div>
|
||||
{% if tracks.1 %}
|
||||
{% if tracks.1.album.cover_image %}
|
||||
{% 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 %}
|
||||
<a href="{{tracks.1.get_absolute_url}}"><img src="{{tracks.1.album.cover_image.url}}" width="150px"></a>
|
||||
{% else %}
|
||||
<a href="{{tracks.1.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="150px"></a>
|
||||
{% endif %}
|
||||
@ -302,7 +301,7 @@
|
||||
<div class="caption-medium">#3 {{tracks.2.title}}</div>
|
||||
{% if tracks.2 %}
|
||||
{% if tracks.2.album.cover_image %}
|
||||
{% 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 %}
|
||||
<a href="{{tracks.2.get_absolute_url}}"><img src="{{tracks.2.album.cover_image.url}}" width="150px"></a>
|
||||
{% else %}
|
||||
<a href="{{tracks.2.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="150px"></a>
|
||||
{% endif %}
|
||||
@ -312,7 +311,7 @@
|
||||
<div class="caption-medium">#4 {{tracks.3.title}}</div>
|
||||
{% if tracks.3 %}
|
||||
{% if tracks.3.album.cover_image %}
|
||||
{% 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 %}
|
||||
<a href="{{tracks.3.get_absolute_url}}"><img src="{{tracks.3.album.cover_image.url}}" width="150px"></a>
|
||||
{% else %}
|
||||
<a href="{{tracks.3.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="150px"></a>
|
||||
{% endif %}
|
||||
@ -322,7 +321,7 @@
|
||||
<div class="caption-medium">#5 {{tracks.4.title}}</div>
|
||||
{% if tracks.4 %}
|
||||
{% if tracks.4.album.cover_image %}
|
||||
{% 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 %}
|
||||
<a href="{{tracks.4.get_absolute_url}}"><img src="{{tracks.4.album.cover_image.url}}" width="150px"></a>
|
||||
{% else %}
|
||||
<a href="{{tracks.4.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="150px"></a>
|
||||
{% endif %}
|
||||
@ -336,7 +335,7 @@
|
||||
<div class="caption-small">#6 {{tracks.5.title}}</div>
|
||||
{% if tracks.5 %}
|
||||
{% if tracks.5.album.cover_image %}
|
||||
{% 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 %}
|
||||
<a href="{{tracks.5.get_absolute_url}}"><img src="{{tracks.5.album.cover_image.url}}" width="100px"></a>
|
||||
{% else %}
|
||||
<a href="{{tracks.5.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="100px"></a>
|
||||
{% endif %}
|
||||
@ -346,7 +345,7 @@
|
||||
<div class="caption-small">#7 {{tracks.6.title}}</div>
|
||||
{% if tracks.6 %}
|
||||
{% if tracks.6.album.cover_image %}
|
||||
{% 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 %}
|
||||
<a href="{{tracks.6.get_absolute_url}}"><img src="{{tracks.6.album.cover_image.url}}" width="100px"></a>
|
||||
{% else %}
|
||||
<a href="{{tracks.6.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="100px"></a>
|
||||
{% endif %}
|
||||
@ -356,7 +355,7 @@
|
||||
<div class="caption-small">#8 {{tracks.7.title}}</div>
|
||||
{% if tracks.7 %}
|
||||
{% if tracks.7.album.cover_image %}
|
||||
{% 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 %}
|
||||
<a href="{{tracks.7.get_absolute_url}}"><img src="{{tracks.7.album.cover_image.url}}" width="100px"></a>
|
||||
{% else %}
|
||||
<a href="{{tracks.7.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="100px"></a>
|
||||
{% endif %}
|
||||
@ -366,7 +365,7 @@
|
||||
<div class="caption-small">#9 {{tracks.8.title}}</div>
|
||||
{% if tracks.8 %}
|
||||
{% if tracks.8.album.cover_image %}
|
||||
{% 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 %}
|
||||
<a href="{{tracks.8.get_absolute_url}}"><img src="{{tracks.8.album.cover_image.url}}" width="100px"></a>
|
||||
{% else %}
|
||||
<a href="{{tracks.8.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="100px"></a>
|
||||
{% endif %}
|
||||
@ -376,7 +375,7 @@
|
||||
<div class="caption-small">#10 {{tracks.9.title}}</div>
|
||||
{% if tracks.9 %}
|
||||
{% if tracks.9.album.cover_image %}
|
||||
{% 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 %}
|
||||
<a href="{{tracks.9.get_absolute_url}}"><img src="{{tracks.9.album.cover_image.url}}" width="100px"></a>
|
||||
{% else %}
|
||||
<a href="{{tracks.9.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="100px"></a>
|
||||
{% endif %}
|
||||
@ -386,7 +385,7 @@
|
||||
<div class="caption-small">#11 {{tracks.10.title}}</div>
|
||||
{% if tracks.10 %}
|
||||
{% if tracks.10.album.cover_image %}
|
||||
{% 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 %}
|
||||
<a href="{{tracks.10.get_absolute_url}}"><img src="{{tracks.10.album.cover_image.url}}" width="100px"></a>
|
||||
{% else %}
|
||||
<a href="{{tracks.10.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="100px"></a>
|
||||
{% endif %}
|
||||
@ -396,7 +395,7 @@
|
||||
<div class="caption-small">#12 {{tracks.11.title}}</div>
|
||||
{% if tracks.11 %}
|
||||
{% if tracks.11.album.cover_image %}
|
||||
{% 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 %}
|
||||
<a href="{{tracks.11.get_absolute_url}}"><img src="{{tracks.11.album.cover_image.url}}" width="100px"></a>
|
||||
{% else %}
|
||||
<a href="{{tracks.11.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="100px"></a>
|
||||
{% endif %}
|
||||
@ -406,7 +405,7 @@
|
||||
<div class="caption-small">#13 {{tracks.12.title}}</div>
|
||||
{% if tracks.12 %}
|
||||
{% if tracks.12.album.cover_image %}
|
||||
{% 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 %}
|
||||
<a href="{{tracks.12.get_absolute_url}}"><img src="{{tracks.12.album.cover_image.url}}" width="100px"></a>
|
||||
{% else %}
|
||||
<a href="{{tracks.12.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="100px"></a>
|
||||
{% endif %}
|
||||
@ -416,7 +415,7 @@
|
||||
<div class="caption-small">#14 {{tracks.13.title}}</div>
|
||||
{% if tracks.13 %}
|
||||
{% if tracks.13.album.cover_image %}
|
||||
{% 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 %}
|
||||
<a href="{{tracks.13.get_absolute_url}}"><img src="{{tracks.13.album.cover_image.url}}" width="100px"></a>
|
||||
{% else %}
|
||||
<a href="{{tracks.13.get_absolute_url}}"><img src="{% static 'images/not-found.jpg' %}" width="100px"></a>
|
||||
{% endif %}
|
||||
@ -472,9 +471,7 @@
|
||||
<tr>
|
||||
<td>{{scrobble.timestamp|naturaltime}}</td>
|
||||
{% if scrobble.track.album.cover_image %}
|
||||
{% 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 %}
|
||||
<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>
|
||||
{% else %}
|
||||
<td><a href="{{scrobble.track.album.get_absolute_url}}">{{scrobble.track.album.name}}</a></td>
|
||||
{% endif %}
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
{% load mathfilters %}
|
||||
{% load static %}
|
||||
{% load naturalduration %}
|
||||
{% load thumbnail %}
|
||||
|
||||
{% block title %}{{object.title}}{% endblock %}
|
||||
|
||||
@ -31,9 +30,7 @@
|
||||
|
||||
<div class="row">
|
||||
{% if object.hltb_cover%}
|
||||
{% thumbnail object.hltb_cover 400 as im %}
|
||||
<div class="cover"><img src="{{im.url}}" /></div>
|
||||
{% endthumbnail %}
|
||||
<div class="cover"><img src="{{object.hltb_cover.url}}" /></div>
|
||||
{% endif %}
|
||||
<div class="summary">
|
||||
{% if object.summary %}
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
{% extends "base_list.html" %}
|
||||
{% load static %}
|
||||
{% load thumbnail %}
|
||||
|
||||
{% block title %}{{object.title}}{% endblock %}
|
||||
|
||||
@ -58,11 +57,7 @@ dd {
|
||||
<div class="row header">
|
||||
<div class="cover image-wrapper">
|
||||
{% if object.imdb_rating %}<div class="caption">{{object.imdb_rating}}</div>{% endif %}
|
||||
{% if object.cover_image %}
|
||||
{% thumbnail object.cover_image 400 as im %}<img src="{{im.url}}" width="{{im.width}}" height="{{im.height}}" />{% endthumbnail %}
|
||||
{% else %}
|
||||
<img src="{% static 'images/no-video-cover.jpg' %}" width="400px" />
|
||||
{% endif %}
|
||||
<img src="{% if object.cover_image %}{{object.cover_image.url}}{% else %}{% static 'images/no-video-cover.jpg' %}{% endif %}" width="400px" />
|
||||
<div class="caption-footer">{{object.year}}{% if object.tv_series %} | <b>S</b>{{object.season_number}} <b>E</b>{{object.episode_number}}{% endif %}</div>
|
||||
</div>
|
||||
<div class="summary">
|
||||
|
||||
Reference in New Issue
Block a user