Skip to content

Commit

Permalink
hide download date in media list
Browse files Browse the repository at this point in the history
  • Loading branch information
biolds committed Jan 9, 2023
1 parent f2f72f6 commit a2486df
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tubesync/sync/templates/sync/media.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,24 @@ <h1 class="truncate">Media</h1>
<a href="{% url 'sync:media-item' pk=m.pk %}" title="{{ m.source.name }} / {{ m.name }}">
<div class="card-image">
<img src="{% if m.thumb %}{% url 'sync:media-thumb' pk=m.pk %}{% else %}{% static 'images/nothumb.png' %}{% endif %}">
<span class="card-title truncate">{{ m.source }}<br>
<span>{{ m.name }}</span><br>
<span class="card-title truncate">{{ m.name }}<br>
<span>
{% if m.downloaded %}
<i class="fas fa-check-circle" title="Downloaded"></i> {{ m.download_date|date:'Y-m-d' }}
<i class="fas fa-check-circle" title="Downloaded"></i>
{% else %}
{% if m.skip %}
<span class="error-text"><i class="fas fa-times" title="Skipping media"></i> Skipped</span>
<span class="error-text"><i class="fas fa-times" title="Skipping media"></i></span>
{% elif not m.source.download_media %}
<span class="error-text"><i class="fas fa-times" title="Not downloading media for this source"></i> Disabled at source</span>
<span class="error-text"><i class="fas fa-times" title="Not downloading media for this source"></i></span>
{% elif not m.has_metadata %}
<i class="far fa-clock" title="Waiting for metadata"></i> Fetching metadata
<i class="far fa-clock" title="Waiting for metadata"></i>
{% elif m.can_download %}
<i class="far fa-clock" title="Waiting to download or downloading"></i> Downloading
<i class="far fa-clock" title="Waiting to download or downloading"></i>
{% else %}
<span class="error-text"><i class="fas fa-exclamation-triangle" title="No matching formats to download"></i> No matching formats</span>
<span class="error-text"><i class="fas fa-exclamation-triangle" title="No matching formats to download"></i></span>
{% endif %}
{% endif %}
{{ m.source.name }}
</span>
</span>
</div>
Expand Down

0 comments on commit a2486df

Please sign in to comment.