initialize
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<div class="d-flex flex-column flex-grow-1">
|
||||
<h5 class="mb-1">{{ item['name'] }}</h5>
|
||||
<p class="mb-1">
|
||||
{{ item['artists'] | map(attribute='name') | join(', ') }}
|
||||
</p>
|
||||
<small class="text-muted"></small>
|
||||
</div>
|
||||
{%if item['images']: %}
|
||||
{% set images = item['images'] %}
|
||||
{% include "spotify/items/cover.html" %}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,9 @@
|
||||
<div class="d-flex flex-column flex-grow-1">
|
||||
<h5 class="mb-1">{{ item['name'] }}</h5>
|
||||
<p class="mb-1"></p>
|
||||
<small class="text-muted"></small>
|
||||
</div>
|
||||
{%if item['images']: %}
|
||||
{% set images = item['images'] %}
|
||||
{% include "spotify/items/cover.html" %}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,11 @@
|
||||
<div class="dropdown">
|
||||
<img src="{{ images | map(attribute='url') | first }}" class="item-image rounded dropdown-toggle"
|
||||
data-bs-toggle="dropdown" data-bs-placement="top" title="Download Cover">
|
||||
<ul class="dropdown-menu">
|
||||
{% for image in images %}
|
||||
<li>
|
||||
<a class="dropdown-item" href="{{image['url']}}" target="_blank">{{image['width']}}px</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
@@ -0,0 +1,9 @@
|
||||
<div class="d-flex flex-column flex-grow-1">
|
||||
<h5 class="mb-1">{{ item['name'] }}</h5>
|
||||
<p class="mb-1"></p>
|
||||
<small class="text-muted"></small>
|
||||
</div>
|
||||
{%if item['images']: %}
|
||||
{% set images = item['images'] %}
|
||||
{% include "spotify/items/cover.html" %}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,22 @@
|
||||
<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>
|
||||
@@ -0,0 +1,11 @@
|
||||
<div class="d-flex flex-column flex-grow-1">
|
||||
<h5 class="mb-1">{{ item['name'] }}</h5>
|
||||
<p class="mb-1">
|
||||
{{ item['description'] }}
|
||||
</p>
|
||||
<small class="text-muted"></small>
|
||||
</div>
|
||||
{%if item['images']: %}
|
||||
{% set images = item['images'] %}
|
||||
{% include "spotify/items/cover.html" %}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,9 @@
|
||||
<div class="d-flex flex-column flex-grow-1">
|
||||
<h5 class="mb-1">{{ item['name'] }}</h5>
|
||||
<p class="mb-1"></p>
|
||||
<small class="text-muted"></small>
|
||||
</div>
|
||||
{%if item['images']: %}
|
||||
{% set images = item['images'] %}
|
||||
{% include "spotify/items/cover.html" %}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,11 @@
|
||||
<div class="d-flex flex-column flex-grow-1">
|
||||
<h5 class="mb-1">{{ item['name'] }}</h5>
|
||||
<p class="mb-1">
|
||||
{{ item['artists'] | map(attribute='name') | join(', ') }}
|
||||
</p>
|
||||
<small class="text-muted">{{ item['album']['name'] }}</small>
|
||||
</div>
|
||||
{%if item['album']['images']: %}
|
||||
{% set images = item['album']['images'] %}
|
||||
{% include "spotify/items/cover.html" %}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user