tweak media thumb downloading, more work on media interface

This commit is contained in:
meeb
2020-12-06 18:33:48 +11:00
parent 6562611a78
commit 60a7305fb7
10 changed files with 61 additions and 37 deletions

View File

@@ -12,7 +12,8 @@
<div class="card-image">
<img src="{% if m.thumb %}{% url 'sync:media-thumb' pk=m.pk %}{% else %}{% static 'images/nothumb.jpg' %} {% endif %}">
<span class="card-title truncate">{{ m.source }}<br>
<span>{{ m }}</span>
<span>{{ m.name }}</span><br>
<span>{{ m.published|date:'Y-m-d' }}</span>
</span>
</div>
</div>
@@ -26,5 +27,5 @@
</div>
{% endfor %}
</div>
{% include 'pagination.html' with pagination=sources.paginator %}
{% include 'pagination.html' with pagination=sources.paginator filter=source.pk %}
{% endblock %}

View File

@@ -17,7 +17,7 @@
<div class="collection">
{% for source in sources %}
<a href="{% url 'sync:source' pk=source.pk %}" class="collection-item">
{{ source.icon|safe }} <strong>{{ source.name }}</strong>, {{ source.get_source_type_display }}<br>
{{ source.icon|safe }} <strong>{{ source.name }}</strong> ({{ source.get_source_type_display }})<br>
{{ source.format_summary }}<br>
<strong>{{ source.media_count }}</strong> media items{% if source.delete_old_media and source.days_to_keep > 0 %}, keep {{ source.days_to_keep }} days of media{% endif %}
</a>