summaryrefslogtreecommitdiff
path: root/templates/program
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-04-13 18:53:29 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-04-13 18:53:29 (GMT)
commit103a909a999ecb8e2bce2cf84e4ec39968223a53 (patch)
treee219a86a6b468b736a47f21061916b114be54427 /templates/program
parentba41badf0171cd618034e4c9eb21893eaf1ccd90 (diff)
getting real.
Diffstat (limited to 'templates/program')
-rw-r--r--templates/program/boxes/broadcastformat.html10
-rw-r--r--templates/program/boxes/current.html42
-rw-r--r--templates/program/boxes/musicfocus.html14
-rw-r--r--templates/program/boxes/recommendations.html22
-rw-r--r--templates/program/boxes/showinformation.html14
-rw-r--r--templates/program/boxes/showtopic.html14
-rw-r--r--templates/program/day_schedule.html60
-rw-r--r--templates/program/host_detail.html29
-rw-r--r--templates/program/host_list.html17
-rw-r--r--templates/program/recommendations.html24
-rw-r--r--templates/program/show_detail.html63
-rw-r--r--templates/program/show_list.html58
-rw-r--r--templates/program/timeslot_detail.html58
-rw-r--r--templates/program/week_schedule.html61
14 files changed, 486 insertions, 0 deletions
diff --git a/templates/program/boxes/broadcastformat.html b/templates/program/boxes/broadcastformat.html
new file mode 100644
index 0000000..3ae00e1
--- /dev/null
+++ b/templates/program/boxes/broadcastformat.html
@@ -0,0 +1,10 @@
+{% if broadcastformats %}
+<dl id="broadcastformat" class="portlet">
+ <dt class="portletHeader"><span>Legende<span></dt>
+ {% for broadcastformat in broadcastformats %}
+ <dd class="portletItem bcformat bf-{{ broadcastformat.slug }}">
+ <a href="../?broadcastformat={{ broadcastformat.slug }}">{{ broadcastformat.format }}</a>
+ </dd>
+ {% endfor %}
+</dl>
+{% endif %}
diff --git a/templates/program/boxes/current.html b/templates/program/boxes/current.html
new file mode 100644
index 0000000..a2341d3
--- /dev/null
+++ b/templates/program/boxes/current.html
@@ -0,0 +1,42 @@
+<!doctype html>
+<html>
+<head>
+ <meta charset="utf-8"/>
+ <title>Current program box</title>
+ <link href="/site_media/styles/base.css" media="screen" rel="stylesheet" type="text/css" />
+</head>
+<body>
+
+ {% if current or next or after_next %}
+ <dl class="portlet program-current">
+ <dt class="portletHeader">Programm derzeit</dt>
+ <dd class="portletItem current-timeslot">
+ <div class="start">{{ current.start|date:"H:i" }}</div>
+ <div class="show {{ current.show.broadcastformat.slug }}">
+ <div class="name"><a href="{% url timeslot-detail current.id %}">{{ current.show.name }}</a></div>
+ {% if current.note %}
+ <div class="note-title">{{ current.note.title }}</div>
+ {% else %}
+ {% if current.show.short_description != 'FIXME' %}
+ <div class="short-description">{{ current.show.short_description }}</div>
+ {% endif %}
+ {% endif %}
+ </div>
+ </dd>
+ <dd class="portletItem next-timeslot">
+ <div class="start">{{ next.start|date:"H:i" }}</div>
+ <div class="show {{ next.show.broadcastformat.slug }}">
+ <div class="name"><a href="{% url timeslot-detail next.id %}">{{ next.show.name }}</a></div>
+ </div>
+ </dd>
+ <dd class="portletItem next-timeslot">
+ <div class="start">{{ after_next.start|date:"H:i" }}</div>
+ <div class="show {{ after_next.show.broadcastformat.slug }}">
+ <div class="name"><a href="{% url timeslot-detail after_next.id %}">{{ after_next.show.name }}</div></a>
+ </div>
+ </dd>
+ </dl>
+ {% endif %}
+
+</body>
+</html>
diff --git a/templates/program/boxes/musicfocus.html b/templates/program/boxes/musicfocus.html
new file mode 100644
index 0000000..7b78f81
--- /dev/null
+++ b/templates/program/boxes/musicfocus.html
@@ -0,0 +1,14 @@
+{% if musicfoci %}
+<dl id="filterbox_musicfocus" class="portlet filterbox">
+ <dt class="portletHeader"><span>Musiktendenz<span></dt>
+ <dd class="portletItem">
+ <ul>
+ {% for item in musicfoci %}
+ <li class="mf-{{ item.abbrev }}">
+ <a href="../?musicfocus={{ item.slug }}">{{ item }}</a>
+ </li>
+ {% endfor %}
+ </ul>
+ </dd>
+</dl>
+{% endif %}
diff --git a/templates/program/boxes/recommendations.html b/templates/program/boxes/recommendations.html
new file mode 100644
index 0000000..abcbe03
--- /dev/null
+++ b/templates/program/boxes/recommendations.html
@@ -0,0 +1,22 @@
+<!doctype html>
+<html>
+<head>
+ <meta charset="utf-8"/>
+ <title>Recomendations box</title>
+ <link href="/site_media/styles/base.css" media="screen" rel="stylesheet" type="text/css" />
+</head>
+<body>
+ {% if recommendation_list %}
+ <dl id="recommendations" class="portlet program-recommendations">
+ <dt class="portletHeader">Programmhinweise</dt>
+ {% for recommendation in recommendation_list %}
+ <dd class="portletItem program-recommendation {{ recommendation.show.broadcastformat.slug }}">
+ <h3 class="show-name"><a href="{% url show-detail recommendation.show.slug %}">{{ recommendation.show.name }}</a></h3>
+ <p class="timeslot-start-end">{{ recommendation.timeslot.start|date:"d.m. H:i" }}-{{ recommendation.timeslot.end|date:"H:i" }}</p>
+ <p class="note-title"><a href="{% url timeslot-detail recommendation.timeslot.id %}">{{ recommendation.title }}</a></p>
+ </dd>
+ {% endfor %}
+ </dl>
+ {% endif %}
+</body>
+</html>
diff --git a/templates/program/boxes/showinformation.html b/templates/program/boxes/showinformation.html
new file mode 100644
index 0000000..bff9486
--- /dev/null
+++ b/templates/program/boxes/showinformation.html
@@ -0,0 +1,14 @@
+{% if showinformations %}
+<dl id="filterbox_showinformation" class="portlet filterbox">
+ <dt class="portletHeader"><span>Sendungsinfo<span></dt>
+ <dd class="portletItem">
+ <ul>
+ {% for item in showinformations %}
+ <li class="si-{{ item.abbrev }}">
+ <a href="../?showinformation={{ item.slug }}">{{ item }}</a>
+ </li>
+ {% endfor %}
+ </ul>
+ </dd>
+</dl>
+{% endif %}
diff --git a/templates/program/boxes/showtopic.html b/templates/program/boxes/showtopic.html
new file mode 100644
index 0000000..b545476
--- /dev/null
+++ b/templates/program/boxes/showtopic.html
@@ -0,0 +1,14 @@
+{% if showtopics %}
+<dl id="filterbox_showtopic" class="portlet filterbox">
+ <dt class="portletHeader"><span>Thema / Schwerpunkt<span></dt>
+ <dd class="portletItem">
+ <ul>
+ {% for item in showtopics %}
+ <li class="st-{{ item.abbrev }}">
+ <a href="../?showtopic={{ item.slug }}">{{ item }}</a>
+ </li>
+ {% endfor %}
+ </ul>
+ </dd>
+</dl>
+{% endif %}
diff --git a/templates/program/day_schedule.html b/templates/program/day_schedule.html
new file mode 100644
index 0000000..a0e1ac4
--- /dev/null
+++ b/templates/program/day_schedule.html
@@ -0,0 +1,60 @@
+<html>
+<head>
+ <title>Day schedule: {{ day|date:"l, d.m.Y" }}</title>
+ <link href="/site_media/styles/base.css" media="screen" rel="stylesheet" type="text/css" />
+</head>
+
+<body>
+
+<div id="calendar"></div>
+
+{% load content_boxes %}
+<div id="filter-format">
+{% broadcastformat %}
+</div>
+<div id="filter-topic">
+ <dl id="filter-header" class="portlet">
+ <dt class="portletHeader"><span>Filter<span></dt>
+ </dl>
+{% musicfocus %}
+{% showinformation %}
+{% showtopic %}
+</div>
+
+<div id="content-main" class="day-schedule">
+ <h2>Tagesansicht</h2>
+ <h1 id="date">{{ day|date:"l, d.m.Y" }}</h1>
+
+ <div id="timeslots">
+ {% for timeslot in timeslots %}
+ <div class="timeslot bcformat-{{ timeslot.show.broadcastformat.slug }}">
+ <div class="start">{{ timeslot.start|date:"H:i" }}</div>
+ <div class="show-abbrevs">
+ {% for showinformation in timeslot.show.showinformation.all %}
+ <span class="si-{{ showinformation.abbrev }}">{{ showinformation.abbrev }}</span>
+ {% endfor %}
+ {% for showtopic in timeslot.show.showtopic.all %}
+ <span class="st-{{ showtopic.abbrev }}">{{ showtopic.abbrev }}</span>
+ {% endfor %}
+ {% for musicfocus in timeslot.show.musicfocus.all %}
+ <span class="mf-{{ musicfocus.abbrev }}">{{ musicfocus.abbrev }}</span>
+ {% endfor %}
+ </div>
+ <div class="show">
+ <h3 class="name"><a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show.name }}</a></h3>
+ {% if timeslot.note %}
+ <p class="note-title"><strong>Heute:</strong> {{ timeslot.note.title }}</p>
+ {% else %}
+ {% if timeslot.show.short_description != 'FIXME' %}
+ <p class="short-description">{{ timeslot.show.short_description }}</p>
+ {% endif %}
+ {% endif %}
+ </div>
+ </div>
+ {% endfor %}
+ </div>
+</div>
+
+
+</body>
+</html>
diff --git a/templates/program/host_detail.html b/templates/program/host_detail.html
new file mode 100644
index 0000000..d28f582
--- /dev/null
+++ b/templates/program/host_detail.html
@@ -0,0 +1,29 @@
+<html>
+<head>
+ <title>Host detail: {{ host.name }}</title>
+ <link href="/site_media/styles/base.css" media="screen" rel="stylesheet" type="text/css" />
+</head>
+<body>
+
+<div id="content-main" class="host-detail">
+ <div id="name">{{ host.name }}</div>
+
+ <div id="shows">
+ <div id="shows-title">Sendungen</div>
+
+ {% for show in host.shows.all %}
+ <div class="show {{ show.broadcastformat.slug }}"><a href="{% url show-detail show.slug %}">{{ show }}</a></div>
+ {% endfor %}
+ </div>
+
+ {% if host.email %}
+ <div id="email">E-Mail Adresse: <a href="{{ host.email }}">{{ host.email }}</a></div>
+ {% endif %}
+
+ {% if host.website %}
+ <div id="website">Website: <a href="{{ host.website }}">{{ host.website }}</a></div>
+ {% endif %}
+</div>
+
+</body>
+</html>
diff --git a/templates/program/host_list.html b/templates/program/host_list.html
new file mode 100644
index 0000000..9b83b29
--- /dev/null
+++ b/templates/program/host_list.html
@@ -0,0 +1,17 @@
+<html>
+<head>
+ <title>Host list</title>
+ <link href="/site_media/styles/base.css" media="screen" rel="stylesheet" type="text/css" />
+</head>
+<body>
+
+<div id="content-main" class="host-list">
+{% for host in host_list %}
+ <div class="host">
+ <a href="{% url host-detail host.id %}">{{ host.name }}</a>
+ </div>
+{% endfor %}
+</div>
+
+</body>
+</html>
diff --git a/templates/program/recommendations.html b/templates/program/recommendations.html
new file mode 100644
index 0000000..85ec16e
--- /dev/null
+++ b/templates/program/recommendations.html
@@ -0,0 +1,24 @@
+<html>
+<head>
+ <title>Recomendations</title>
+ <link href="/site_media/styles/base.css" media="screen" rel="stylesheet" type="text/css" />
+</head>
+<body>
+
+<div id="content-main" class="recommendations">
+ <div id="recommendations-title">Programmhinweise</div>
+{% for recommendation in recommendation_list %}
+ <div class="recommendation {{ recommendation.show.broadcastformat.slug }}">
+ <div class="timeslot-start-end">{{ recommendation.timeslot.start|date:"d.m. H:i" }}-{{ recommendation.timeslot.end|date:"H:i" }}</div>
+ <div class="show-name"><a href="{% url show-detail recommendation.show.slug %}">{{ recommendation.show.name }}</a></div>
+ {% if recommendation.show.short_description != 'FIXME' %}
+ <div class="show-short-description">{{ recommendation.show.short_description }}</div>
+ {% endif %}
+ <div class="note-title"><a href="{% url timeslot-detail recommendation.timeslot.id %}">{{ recommendation.title }}</a></div>
+ <div class="note-content">{{ recommendation.content|safe}}</div>
+ </div>
+{% endfor %}
+</div>
+
+</body>
+</html>
diff --git a/templates/program/show_detail.html b/templates/program/show_detail.html
new file mode 100644
index 0000000..7614496
--- /dev/null
+++ b/templates/program/show_detail.html
@@ -0,0 +1,63 @@
+<html>
+<head>
+ <title>Show detail: {{ show.name }}</title>
+</head>
+<body>
+
+<div id="calendar"></div>
+
+<div id="content-main" class="show-detail">
+
+ <h1 id="name">{{ show.name }}</h1>
+
+ {% if show.short_description != 'FIXME' %}
+ <div id="short-description" class="documentDescription">{{ show.short_description }}</div>
+ {% endif %}
+
+ <div id="abbrevs">
+ {% for topic in show.showtopic.all %}
+ <span class="topic-abbrev">{{ topic.abbrev }}</span>
+ {% endfor %}
+
+ {% for information in show.showinformation.all %}
+ <span class="information-abbrev">{{ information.abbrev }}</span>
+ {% endfor %}
+
+ {% for focus in show.musicfocus.all %}
+ <span class="focus-abbrev">{{ focus.abbrev }}</span>
+ {% endfor %}
+
+ <span class="broadcastformat-abbrev">{{ show.broadcastformat.abbrev }}</span>
+ </div>
+
+ <div id="programslots">
+ {% for slot in show.programslots.all %}
+ <div class="programslot">{{ slot }}</div>
+ {% endfor %}
+ </div>
+
+ <div id="broadcastformat">{{ show.broadcastformat.format }}</div>
+
+ <div id="hosts">
+ {% for host in show.hosts.all %}
+ <div class="host"><a href="{% url host-detail host.id %}">{{ host }}</a></div>
+ {% endfor %}
+ </div>
+
+ <div id="description">{{ show.description|safe }}</div>
+
+ {% if show.email %}
+ <div id="email"><a href="mailto:{{ show.email }}">{{ show.email }}</a></div>
+ {% endif %}
+
+ {% if show.website %}
+ <div id="website"><a href="{{ show.website }}">{{ show.website }}</a></div>
+ {% endif %}
+
+ {% if show.cba_series_id %}
+ <div id="cba-series-id"><a href="http://cba.fro.at/series/{{ show.cba_series_id }}">CBA</a></div>
+ {% endif %}
+</div>
+
+</body>
+</html>
diff --git a/templates/program/show_list.html b/templates/program/show_list.html
new file mode 100644
index 0000000..6fe6525
--- /dev/null
+++ b/templates/program/show_list.html
@@ -0,0 +1,58 @@
+<html>
+<head>
+ <title>Show list</title>
+ <link href="/site_media/styles/base.css" media="screen" rel="stylesheet" type="text/css" />
+</head>
+<body>
+
+{% load content_boxes %}
+<div id="filter-format">
+{% broadcastformat %}
+</div>
+<div id="filter-topic">
+ <dl id="filter-header" class="portlet">
+ <dt class="portletHeader"><span>Filter<span></dt>
+ </dl>
+{% musicfocus %}
+{% showinformation %}
+{% showtopic %}
+</div>
+
+<div id="content-main" class="show-list">
+{% for show in show_list %}
+ <div class="show">
+ <div class="abbrevs">&nbsp;
+ {% for topic in show.showtopic.all %}
+ <span class="topic-abbrev">{{ topic.abbrev }}</span>
+ {% endfor %}
+
+ {% for information in show.showinformation.all %}
+ <span class="information-abbrev">{{ information.abbrev }}</span>
+ {% endfor %}
+
+ {% for focus in show.musicfocus.all %}
+ <span class="focus-abbrev">{{ focus.abbrev }}</span>
+ {% endfor %}
+
+ <span class="broadcastformat-abbrev">{{ show.broadcastformat.abbrev }}</span>
+ </div>
+
+ <div class="details">
+ <div class="name"><a href="{% url show-detail show.slug %}">{{ show.name }}</a></div>
+
+ <div class="programslots">
+ {% for slot in show.programslots.all %}
+ <div class="programslot">{{ slot }}</div>
+ {% endfor %}
+ </div>
+
+ {% if show.short_description != 'FIXME' %}
+ <div class="short-description">{{ show.short_description }}</div>
+ {% endif %}
+ </div>
+ </div>
+{% endfor %}
+</div>
+
+</body>
+</html>
diff --git a/templates/program/timeslot_detail.html b/templates/program/timeslot_detail.html
new file mode 100644
index 0000000..04d56c2
--- /dev/null
+++ b/templates/program/timeslot_detail.html
@@ -0,0 +1,58 @@
+<html>
+<head>
+ <title>Timeslot detail: {{ timeslot }}</title>
+ <link href="/site_media/styles/base.css" media="screen" rel="stylesheet" type="text/css" />
+</head>
+<body>
+
+<div id="content-main" class="timeslot-detail">
+ <h1 id="show-name">{{ timeslot.show.name }}</h1>
+
+ {% if timeslot.show.short_description != 'FIXME' %}
+ <div id="short-description" class="documentDescription">{{ timeslot.show.short_description }}</div>
+ {% endif %}
+
+ <div id="abbrevs">
+ {% for topic in timeslot.show.showtopic.all %}
+ <span class="topic-abbrev">{{ topic.abbrev }}</span>
+ {% endfor %}
+
+ {% for information in timeslot.show.showinformation.all %}
+ <span class="information-abbrev">{{ information.abbrev }}</span>
+ {% endfor %}
+
+ {% for focus in timeslot.show.musicfocus.all %}
+ <span class="focus-abbrev">{{ focus.abbrev }}</span>
+ {% endfor %}
+
+ <span class="broadcastformat-abbrev">{{ timeslot.show.broadcastformat.abbrev }}</span>
+ </div>
+
+ <div id="programslots">
+ {% for slot in timeslot.show.programslots.all %}
+ <div class="programslot">{{ slot }}</div>
+ {% endfor %}
+ </div>
+
+ <div id="broadcastformat">{{ timeslot.show.broadcastformat.format }}</div>
+
+ <div id="hosts">
+ {% for host in timeslot.show.hosts.all %}
+ <div class="host"><a href="{% url host-detail host.id %}">{{ host }}</a></div>
+ {% endfor %}
+ </div>
+
+ <div id="description">{{ timeslot.show.description|safe }}</div>
+
+ <div id="note">
+ {% if timeslot.note %}
+ <div class="note">
+ <div class="title">{{ timeslot.note.title }}</div>
+ <div class="content">{{ timeslot.note.content|safe }}</div>
+ </div>
+ {% endif %}
+ </div>
+</div>
+
+</body>
+</html>
diff --git a/templates/program/week_schedule.html b/templates/program/week_schedule.html
new file mode 100644
index 0000000..76aed5a
--- /dev/null
+++ b/templates/program/week_schedule.html
@@ -0,0 +1,61 @@
+<html>
+<head>
+ <title>Week schedule</title>
+ <link href="/site_media/styles/base.css" media="screen" rel="stylesheet" type="text/css" />
+</head>
+
+<body>
+
+<div id="content-main" class="week-schedule">
+ <div id="monday">
+ <div class="weekday">{{ monday|date:"l d.m.Y" }}</div>
+ {% for timeslot in monday_timeslots %}
+ <div class="timeslot {{ timeslot.show.broadcastformat.slug }}"><a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show.name }}</a></div>
+ {% endfor %}
+ </div>
+
+ <div id="tuesday">
+ <div class="weekday">{{ tuesday|date:"l d.m.Y" }}</div>
+ {% for timeslot in tuesday_timeslots %}
+ <div class="timeslot {{ timeslot.show.broadcastformat.slug }}"><a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show.name }}</a></div>
+ {% endfor %}
+ </div>
+
+ <div id="wednesday">
+ <div class="weekday">{{ wednesday|date:"l d.m.Y" }}</div>
+ {% for timeslot in wednesday_timeslots %}
+ <div class="timeslot {{ timeslot.show.broadcastformat.slug }}"><a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show.name }}</a></div>
+ {% endfor %}
+ </div>
+
+ <div id="thursday">
+ <div class="weekday">{{ thursday|date:"l d.m.Y" }}</div>
+ {% for timeslot in thursday_timeslots %}
+ <div class="timeslot {{ timeslot.show.broadcastformat.slug }}"><a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show.name }}</a></div>
+ {% endfor %}
+ </div>
+
+ <div id="friday">
+ <div class="weekday">{{ friday|date:"l d.m.Y" }}</div>
+ {% for timeslot in friday_timeslots %}
+ <div class="timeslot {{ timeslot.show.broadcastformat.slug }}"><a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show.name }}</a></div>
+ {% endfor %}
+ </div>
+
+ <div id="saturday">
+ <div class="weekday">{{ saturday|date:"l d.m.Y" }}</div>
+ {% for timeslot in saturday_timeslots %}
+ <div class="timeslot {{ timeslot.show.broadcastformat.slug }}"><a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show.name }}</a></div>
+ {% endfor %}
+ </div>
+
+ <div id="sunday">
+ <div class="weekday">{{ sunday|date:"l d.m.Y" }}</div>
+ {% for timeslot in sunday_timeslots %}
+ <div class="timeslot {{ timeslot.show.broadcastformat.slug }}"><a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show.name }}</a></div>
+ {% endfor %}
+ </div>
+</div>
+
+</body>
+</html>