Fixed album descriptions

This commit is contained in:
gballan1 2016-11-29 17:42:40 -05:00
parent 16b5573897
commit 8e8a71d71a
2 changed files with 4 additions and 4 deletions

View File

@ -63,9 +63,9 @@
<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 %} {% if album.description %}
<hr /> <hr />
<p id="album-description">{{ albums[0].description|length > 50 ? albums[0].description[:50] ~ '...' : albums[0].description }}</p> <p id="album-description">{{ album.description|length > 50 ? album.description[:50] ~ '...' : album.description }}</p>
{% endif %} {% endif %}
</div> </div>
</div> </div>

View File

@ -63,9 +63,9 @@
<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 %} {% if album.description %}
<hr /> <hr />
<p id="album-description">{{ albums[0].description|length > 50 ? albums[0].description[:50] ~ '...' : albums[0].description }}</p> <p id="album-description">{{ album.description|length > 50 ? album.description[:50] ~ '...' : album.description }}</p>
{% endif %} {% endif %}
</div> </div>
</div> </div>