Store year and party as a tuple.
[demoscenemusic.git] / templates / home.html
1 {% extends "templates/base.html" %}
2
3 {% block title %}Home{{ block.super }}{% endblock %}
4
5 {% block content %}
6
7 <h1>Tracks</h1>
8
9 {% for party, compoTracks in partyTracks.items %}
10         <div>
11                 <h2>{{ party.0 }} {{ party.1 }}</h2>
12                 {% for compo, tracks in compoTracks.items %}
13                         <h3>{{ compo }}</h3>
14                         <ul>
15                                 {% for track in tracks %}
16                                         <li>
17                                                 <a href="/track/{{ track.id }}">{{ track.name }}</a>
18                                                 by
19                                                 {% for artist in track.artists.all %}
20                                                         {% if not forloop.first %}&amp;{% endif %}
21                                                         <a href="/artist/{{ artist.id }}">{{ artist.name }}</a>
22                                                         {% for group in artist.groups.all %}
23                                                                 {% if forloop.first %}/{% else %}^{% endif %}
24                                                                 <a href="/group/{{ group.id }}">{{ group.shortName|default:group.name }}</a>
25                                                         {% endfor %}
26                                                 {% endfor %}
27                                         </li>
28                                 {% endfor %}
29                         </ul>
30                 {% endfor %}
31         </div>
32 {% endfor %}
33
34 {% endblock content %}