diff options
Diffstat (limited to 'program/templates/v2/current_show.html')
-rw-r--r-- | program/templates/v2/current_show.html | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/program/templates/v2/current_show.html b/program/templates/v2/current_show.html new file mode 100644 index 0000000..3ffe8c4 --- /dev/null +++ b/program/templates/v2/current_show.html @@ -0,0 +1,56 @@ +<!doctype html> +<html> +<head> + <meta charset="utf-8"/> + <title>Current program box</title> +</head> +<body> + <ul> +{% if previous_timeslot %} + <li id="previous" class="bf-{{ previous_timeslot.show.broadcastformat.slug }}"> + <div class="time">{{ previous_timeslot.start|date:"H:i" }}</div> + <div class="show-name"> + <a href="{% url "timeslot-detail" previous_timeslot.id %}">{{ previous_timeslot.show.name }}</a> + </div> + <div class="show-content"> + </div> + </li> +{% endif %} +{% if current_timeslot %} + <li id="current" class="bf-{{ current_timeslot.show.broadcastformat.slug }}"> + <div class="time">{{ current_timeslot.start|date:"H:i" }}</div> + <div class="show-name"> + <a href="{% url "timeslot-detail" current_timeslot.id %}">{{ current_timeslot.show.name }}</a> + </div> + <div class="show-content"> +{% if current_timeslot.note %} + {{ current_timeslot.note.title }} +{% else %} + {{ current_timeslot.show.short_description }} +{% endif %} + </div> + </li> +{% endif %} +{% if next_timeslot %} + <li id="next" class="bf-{{ next_timeslot.show.broadcastformat.slug }}"> + <div class="time">{{ next_timeslot.start|date:"H:i" }}</div> + <div class="show-name"> + <a href="{% url "timeslot-detail" next_timeslot.id %}">{{ next_timeslot.show.name }}</a> + </div> + <div class="show-content"> + </div> + </li> +{% endif %} +{% if after_next_timeslot %} + <li id="after_next" class="bf-{{ after_next_timeslot.show.broadcastformat.slug }}"> + <div class="timer">{{ after_next_timeslot.start|date:"H:i" }}</div> + <div class="show-name"> + <a href="{% url "timeslot-detail" after_next_timeslot.id %}">{{ after_next_timeslot.show.name }}</a> + </div> + <div class="show-content"> + </div> + </li> +{% endif %} + </ul> +</body> +</html> |