{% extends "base2col.html" %}
{% load authors %}
{% block breadcrumb %}{% endblock breadcrumb %}
{% block content %}
<h2>Repertorio</h2>
{% regroup object_list by categoria as repertory_list %}
<ul class="unstyled">
{% for rpt in repertory_list %}
<li><h3><a id="id-{{ rpt.grouper.slug }}">{{ rpt.grouper }}</a></h3>
<ul class="unstyled inline class-{{ rpt.grouper.slug }}">
{% for item in rpt.list %}
<li>
<h4>{{ item.titolo }}</h4>
<p><a href="?autore={{ item.autore.id }}">{{ item.autore.nome }} {{ item.autore.cognome }}</a></p>
<p>{% if item.descrizione %} {{ item.descrizione|safe }} {% else %} <br/> {% endif %} </p>
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
{% endblock content %}
{% block sidebar %}
<div class="well">
<ul class="nav nav-list">
<li class="nav-header">CATEGORIE</li>
<li><a href="/repertorio/">Tutti</a></li>
{% for cat in category %}
<li><a href="#id-{{ cat.slug }}">{{ cat.nome }}</a></li>
{% endfor %}
</ul>
{% render_authors_links %}
</div>
{% endblock sidebar %}