{% if session is not none %}
<div class="text-beige m-3">
  {% set dn = date_names(session.date) %}
  <a href="/sessio/{{ session.id }}">
    <i class="fa fa-chevron-left px-2" aria-hidden="true"></i>
    <i>
    Tocat el {{ dn.day_name }} {{ dn.day }} {{ dn.month_name }} de {{ dn.year }}
    </i>
  </a>
</div>
{% endif %}
{% if set.score %}
  {% for tema_in_set in set.temes %}
    {% if tema_in_set.tema is not none %}
      {% set tema = tema_in_set.tema %}
      {% include "fragments/llista/set/tema_title.html" %}
    {% else %}
      <h3 class="text-center text-3xl p-4"> <i>Desconegut</i> </h3>
    {% endif %}
  {% endfor %}
  <div class="mx-12">
    <hr class="h-px mt-1 mb-3 bg-beige border-0">
    {% include "fragments/llista/set/set_score.html"%}
  </div>
{% else %}
{% for tema_in_set in set.temes %}
  {% if loop.index != 1 %}
  <div class="mx-12">
    <hr class="h-px mt-1 mb-3 bg-beige border-0">
  </div>
  {% endif %}
  {% if tema_in_set.tema is not none %}
    {% set tema = tema_in_set.tema %}
    {% include "fragments/llista/set/tema.html"%}
  {% else %}
    <h3 class="text-center text-3xl p-4">
      <i>Desconegut</i>
    </h3>
    <div class="text-center">
      <i>No sabem quin tema és aquest</i>
    </div>
  {% endif %}
  <div class="m-8"> </div>
{% endfor %}
{% endif %}
