Added truncated album description to album selection

This commit is contained in:
gballan1 2016-11-29 17:41:15 -05:00
parent 67ddf0f11a
commit 16b5573897
2 changed files with 8 additions and 0 deletions

View File

@ -63,6 +63,10 @@
<img class="album-art" src="{{ album.album_art }}" alt="{{ album.title }}">
<div class="caption">
<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>

View File

@ -63,6 +63,10 @@
<img class="album-art" src="{{ album.album_art }}" alt="{{ album.title }}">
<div class="caption">
<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>