diff options
Diffstat (limited to 'program/templates')
-rw-r--r-- | program/templates/host_detail.html | 9 | ||||
-rw-r--r-- | program/templates/show_detail.html | 6 | ||||
-rw-r--r-- | program/templates/show_list.html | 6 |
3 files changed, 6 insertions, 15 deletions
diff --git a/program/templates/host_detail.html b/program/templates/host_detail.html index 73182d6..e7aad16 100644 --- a/program/templates/host_detail.html +++ b/program/templates/host_detail.html @@ -9,13 +9,8 @@ <div id="shows"> <div id="shows-title">Sendungen</div> - {% for show in host.shows.all %} - {% if show.is_active %} - <div class="show {{ show.broadcastformat.slug }}"><a - href="{% url "show-detail" show.slug %}">{{ show }}</a></div> - {% else %} - <div class="show {{ show.broadcastformat.slug }}">{{ show }}</div> - {% endif %} + {% for show in host.active_shows %} + <div class="show {{ show.broadcastformat.slug }}"><a href="{% url "show-detail" show.slug %}"> {{ show.name }}</a></div> {% endfor %} </div> diff --git a/program/templates/show_detail.html b/program/templates/show_detail.html index 47d20a1..2e45549 100644 --- a/program/templates/show_detail.html +++ b/program/templates/show_detail.html @@ -13,10 +13,8 @@ <h1 id="name">{{ show.name }}</h1> {% if show.id != 1 %} <p id="programslots"> - {% for slot in show.programslots.all %} - {% if slot.is_active %} - <span class="programslot">{{ slot }}</span><br/> - {% endif %} + {% for slot in show.active_programslots %} + <span class="programslot">{{ slot }}</span><br/> {% endfor %} </p> {% endif %} diff --git a/program/templates/show_list.html b/program/templates/show_list.html index 62594e9..d9b9a47 100644 --- a/program/templates/show_list.html +++ b/program/templates/show_list.html @@ -40,10 +40,8 @@ <div class="show-detail"> <h3 class="show-title"><a href="{% url "show-detail" show.slug %}">{{ show.name }}</a></h3> <ul class="show-programslots"> - {% for programslot in show.programslots.all %} - {% if programslot.is_active %} - <li class="show-programslot">{{ programslot }}</li> - {% endif %} + {% for programslot in show.active_program_slots %} + <li class="show-programslot">{{ programslot }}</li> {% endfor %} </ul> <p class="show-description">{{ show.short_description }}</p> |