22 lines
983 B
HTML
22 lines
983 B
HTML
<div class="d-flex w-100 mt-3 justify-content-between">
|
|
<a class="btn btn-primary" href="{{ url_for('api.rfid_write', value=item.uri) }}"><i class="bi bi-pencil-square"></i>
|
|
Write to card</a>
|
|
<a class="btn btn-secondary" href="{{ url_for('api.play', uri=item.uri) }}"><i class="bi bi-play"></i> Play
|
|
now</a>
|
|
{% if 'spotifydl' in item: %}
|
|
{% if item['spotifydl'] == 'SpotifyDLStatus.NONE': %}
|
|
<a class="btn btn-warning" href="{{ url_for('api.spotify_dl', uri=item.uri) }}"><i class="bi bi-save"></i>
|
|
Download</a>
|
|
{% else: %}
|
|
<p>
|
|
{% if item['spotifydl'] == 'SpotifyDLStatus.FINISHED': %}
|
|
<span class="badge rounded-pill bg-success">Downloaded</span>
|
|
{% elif item['spotifydl'] == 'SpotifyDLStatus.RUNNING': %}
|
|
<span class="badge rounded-pill bg-info">Running</span>
|
|
{% elif item['spotifydl'] == 'SpotifyDLStatus.ERROR': %}
|
|
<span class="badge rounded-pill bg-danger">Error</span>
|
|
{% endif %}
|
|
</p>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div> |