{% extends 'MartaBernachMusicStoreFrontendBundle:Main:index.html.twig' %}

{% block content %}
    <h2>{{ album.band }} - {{ album.name }}</h2>

    <ul class="list-group">
        <li class="list-group-item">
            <b>Rok wydania:</b> {{ album.releaseDate|date("Y") }}
        </li>
        {% if album.genres is not empty %}
            <li class="list-group-item">
                <h4>Gatunki:</h4>
                <ul class="list-group">
                    {% for genre in album.genres %}
                        <li class="list-group-item">
                            {{ genre }}
                        </li>
                    {% endfor %}
                </ul>
            </li>
        {% endif %}
        {% if album.tracks is not empty %}
            <li class="list-group-item">
                <h4>Piosenki:</h4>
                <ul class="list-group">
                    {% for track in album.tracks %}
                        <li class="list-group-item">
                            {{ track.rank }}. {{ track.name }} <span class="badge">{{ track.duration|date("i:s") }}</span>
                        </li>
                    {% endfor %}
                </ul>
            </li>
        {% endif %}
        <li class="list-group-item">
            <h4>Opis:</h4> {{ album.summary }}
        </li>
    </ul>
{% endblock %}
{% extends 'MartaBernachMusicStoreFrontendBundle:Main:index.html.twig' %}

{% block content %}
    <h2><a href="{{ path('front_band', {'slug': album.band.slug}) }}">{{ album.band.name }}</a> - {{ album.name }}</h2>

    <ul class="list-group">
        <li class="list-group-item">
            <b>Rok wydania:</b> {{ album.releaseDate|date("Y") }}
        </li>
        {% if album.genres is not empty %}
            <li class="list-group-item">
                <h4>Gatunki:</h4>
                <ul class="list-group">
                    {% for genre in album.genres %}
                        <li class="list-group-item">
                            {{ genre }}
                        </li>
                    {% endfor %}
                </ul>
            </li>
        {% endif %}
        {% if album.tracks is not empty %}
            <li class="list-group-item">
                <h4>Piosenki:</h4>
                <ul class="list-group">
                    {% for track in album.tracks %}
                        <li class="list-group-item">
                            {{ track.rank }}. {{ track.name }} <span class="badge">{{ track.duration|date("i:s") }}</span>
                        </li>
                    {% endfor %}
                </ul>
            </li>
        {% endif %}
        <li class="list-group-item">
            <h4>Opis:</h4> {{ album.summary }}
        </li>
    </ul>
{% endblock %}
Add link to band on album page
Add link to band on album page
