{% extends 'base.html' %}

{% block menuapp %}

{% include 'lyrics/_menu-lyrics.html' %}

{% endblock menuapp %}

{% block content %}
<div class="container-xl">
    <div class="app-card app-card-notification shadow-sm mb-4">
        {% for album in albumes %}
        <div class="app-card-header px-4 py-3">
            <div class="row g-3 align-items-center">

                <div class="col-12 col-lg-auto text-center text-lg-start">						        
                    {% if album.cover_image %}
                    <p><img src="{{ album.cover_image.url }}" alt="{{ album.name }}" style="width:200px;height:200px;"></p>
                    {% else %}
                    <p>No hay imágen disponible</p>
                    {% endif %}
                </div><!--//col-->        
                
                <div class="col-12 col-lg-auto text-center text-lg-start">
                    <h4 class="notification-title mb-1">{{ song.name }}</h4>
                    
                    <ul class="notification-meta list-inline mb-0">
                        <li class="list-inline-item">{{ song.artist }}</li>
                        <li class="list-inline-item">|</li>
                        <li class="list-inline-item">{{ song.year }}</li>
                        <li class="list-inline-item">|</li>
                        <li class="list-inline-item"><a href="{% url 'lyrics:detalle_album' album_id=album.id %}">{{ song.album.name }}</a></li>
                    </ul>
               
                </div><!--//col-->
            </div><!--//row-->
        </div><!--//app-card-header-->
        <div class="app-card-body p-4">
            <pre>{{ song.lyrics }}</pre>
        </div><!--//app-card-body-->
        {% endfor %}
    </div><!--//app-card-->
{% endblock %}
