diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2016-05-01 15:14:24 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2016-05-01 15:14:24 (GMT) |
commit | 094aa869116847d7941ab6fbf18b176dec1665d1 (patch) | |
tree | d79830e6d438c402cb52f6bf4b62a46d85b6eb3d /program/templates/show_detail.html | |
parent | b96eecc7b8d67ba51b3c3683b80b2cf64b7378e6 (diff) |
include notes of predecessor show if available.
Diffstat (limited to 'program/templates/show_detail.html')
-rw-r--r-- | program/templates/show_detail.html | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/program/templates/show_detail.html b/program/templates/show_detail.html index 7993287..04ad976 100644 --- a/program/templates/show_detail.html +++ b/program/templates/show_detail.html @@ -73,9 +73,20 @@ <div class="title">{{ note.title }}</div> </li> {% endfor %} + {% if show.predecessor and show.predecessor.notes.all %} + {% if show.name != show.predecessor.name %} + <h3>Davor als {{ show.predecessor.name }}</h3> + {% endif %} + {% for note in show.predecessor.notes.all reversed %} + <li> + <a href="{% url "timeslot-detail" note.timeslot.id %}" + title="{{ note.title }}">{{ note.start|date:"d. M Y" }}:</a> + <div class="title">{{ note.title }}</div> + </li> + {% endfor %} + {% endif %} </ul> {% endif %} - </div> </body> |