From da7a48b7014613636b5e4a84866b6e0da3797d1a Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> Date: Mon, 21 Mar 2011 22:26:35 +0100 Subject: added templates for current & dav/today views. diff --git a/templates/program/current.html b/templates/program/current.html new file mode 100644 index 0000000..fd53d45 --- /dev/null +++ b/templates/program/current.html @@ -0,0 +1,14 @@ + +<div id="program-now"> + <div id="current-show"> + {{ current }} + </div> + + <div id="next-show"> + {{ next }} + </div> + + <div id="after-next-show"> + {{ after_next }} + </div> +</div> \ No newline at end of file diff --git a/templates/program/day_schedule.html b/templates/program/day_schedule.html new file mode 100644 index 0000000..cb32ae8 --- /dev/null +++ b/templates/program/day_schedule.html @@ -0,0 +1,48 @@ + + +<div id="calendar"> +</div> + +<div id="recommendations"> + {% for recommendation in recommendations %} + <div>{{ recommendation.timeslot.start|date:"H:i" }}</div> + <div>{{ recommendation.timeslot.programslot.show.name }}</div> + <div><a href="{% url timeslot-detail recommendation.timeslot.id %}">{{ recommendation.title }}</a></div> + {% endfor %} +</div> + +<div> + {% for timeslot in timeslots %} + <div> + <span class="time">{{ timeslot.start|date:"H:i" }}</span> + <span class="abbrev"> + {% for showinformation in timeslot.programslot.show.showinformation.all %} + {{ showinformation.abbrev }} + {% endfor %} + </span> + <span class="abbrev"> + {% for showtopic in timeslot.programslot.show.showtopic.all %} + {{ showtopic.abbrev }} + {% endfor %} + </span> + <span class="abbrev"> + {% for musicfocus in timeslot.programslot.show.musicfocus.all %} + {{ musicfocus.abbrev }} + {% endfor %} + </span> + <span class="timeslot"> + <a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show }}</a> + {% if timeslot.note %} + <span>Heute: {{ timeslot.note.title }}</span> + {% endif %} + </span> + {% endfor %} +</div> + +<div> + {% for broadcastformat in broadcastformats %} + <div> + {{ broadcastformat }} + </div> + {% endfor %} +</div> \ No newline at end of file diff --git a/templates/program/today_schedule.html b/templates/program/today_schedule.html new file mode 100644 index 0000000..cb32ae8 --- /dev/null +++ b/templates/program/today_schedule.html @@ -0,0 +1,48 @@ + + +<div id="calendar"> +</div> + +<div id="recommendations"> + {% for recommendation in recommendations %} + <div>{{ recommendation.timeslot.start|date:"H:i" }}</div> + <div>{{ recommendation.timeslot.programslot.show.name }}</div> + <div><a href="{% url timeslot-detail recommendation.timeslot.id %}">{{ recommendation.title }}</a></div> + {% endfor %} +</div> + +<div> + {% for timeslot in timeslots %} + <div> + <span class="time">{{ timeslot.start|date:"H:i" }}</span> + <span class="abbrev"> + {% for showinformation in timeslot.programslot.show.showinformation.all %} + {{ showinformation.abbrev }} + {% endfor %} + </span> + <span class="abbrev"> + {% for showtopic in timeslot.programslot.show.showtopic.all %} + {{ showtopic.abbrev }} + {% endfor %} + </span> + <span class="abbrev"> + {% for musicfocus in timeslot.programslot.show.musicfocus.all %} + {{ musicfocus.abbrev }} + {% endfor %} + </span> + <span class="timeslot"> + <a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show }}</a> + {% if timeslot.note %} + <span>Heute: {{ timeslot.note.title }}</span> + {% endif %} + </span> + {% endfor %} +</div> + +<div> + {% for broadcastformat in broadcastformats %} + <div> + {{ broadcastformat }} + </div> + {% endfor %} +</div> \ No newline at end of file -- cgit v0.10.2