Added truncated album description to album selection
This commit is contained in:
parent
67ddf0f11a
commit
16b5573897
@ -63,6 +63,10 @@
|
|||||||
<img class="album-art" src="{{ album.album_art }}" alt="{{ album.title }}">
|
<img class="album-art" src="{{ album.album_art }}" alt="{{ album.title }}">
|
||||||
<div class="caption">
|
<div class="caption">
|
||||||
<h5>{{ album.title }} ({{ album.releaseYear }})</h5>
|
<h5>{{ album.title }} ({{ album.releaseYear }})</h5>
|
||||||
|
{% if albums[0].description %}
|
||||||
|
<hr />
|
||||||
|
<p id="album-description">{{ albums[0].description|length > 50 ? albums[0].description[:50] ~ '...' : albums[0].description }}</p>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -63,6 +63,10 @@
|
|||||||
<img class="album-art" src="{{ album.album_art }}" alt="{{ album.title }}">
|
<img class="album-art" src="{{ album.album_art }}" alt="{{ album.title }}">
|
||||||
<div class="caption">
|
<div class="caption">
|
||||||
<h5>{{ album.title }} ({{ album.releaseYear }})</h5>
|
<h5>{{ album.title }} ({{ album.releaseYear }})</h5>
|
||||||
|
{% if albums[0].description %}
|
||||||
|
<hr />
|
||||||
|
<p id="album-description">{{ albums[0].description|length > 50 ? albums[0].description[:50] ~ '...' : albums[0].description }}</p>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user