From 5504c0d926aabb2017e547bfbfbcf986ce5ee037 Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Sat, 26 Mar 2011 20:31:34 +0100 Subject: creating an egg pt1 diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 5596645..0000000 --- a/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2011, Ernesto Rico-Schmidt -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. - -Redistributions in binary form must reproduce the above copyright notice, this -list of conditions and the following disclaimer in the documentation and/or -other materials provided with the distribution. - -Neither the name of the author nor the names of its contributors may be -used to endorse or promote products derived from this software without specific -prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/__init__.py b/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst new file mode 100644 index 0000000..e69de29 diff --git a/docs/LICENSE.rst b/docs/LICENSE.rst new file mode 100644 index 0000000..5596645 --- /dev/null +++ b/docs/LICENSE.rst @@ -0,0 +1,27 @@ +Copyright (c) 2011, Ernesto Rico-Schmidt +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. + +Redistributions in binary form must reproduce the above copyright notice, this +list of conditions and the following disclaimer in the documentation and/or +other materials provided with the distribution. + +Neither the name of the author nor the names of its contributors may be +used to endorse or promote products derived from this software without specific +prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/helsinki.program/manage.py b/helsinki.program/manage.py new file mode 100755 index 0000000..5e78ea9 --- /dev/null +++ b/helsinki.program/manage.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python +from django.core.management import execute_manager +try: + import settings # Assumed to be in the same directory. +except ImportError: + import sys + sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__) + sys.exit(1) + +if __name__ == "__main__": + execute_manager(settings) diff --git a/helsinki.program/settings.py b/helsinki.program/settings.py new file mode 100644 index 0000000..ac4ad72 --- /dev/null +++ b/helsinki.program/settings.py @@ -0,0 +1,100 @@ +import os + +# Django settings for helsinki project. + +DEBUG = True +TEMPLATE_DEBUG = DEBUG + +ADMINS = ( + # ('Your Name', 'your_email@example.com'), +) + +MANAGERS = ADMINS + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.mysql', + 'NAME': 'helsinki2', + 'USER': 'helsinki', + 'PASSWORD': 'helsinki' + } +} + +TIME_ZONE = 'Europe/Vienna' + +LANGUAGE_CODE = 'de' + +SITE_ID = 1 + +USE_I18N = True + +USE_L10N = True + +MEDIA_ROOT = '' + +MEDIA_URL = '' + +STATIC_ROOT = '' + +STATIC_URL = '/static/' + +ADMIN_MEDIA_PREFIX = '/static/admin/' + +STATICFILES_DIRS = () + +STATICFILES_FINDERS = ( + 'django.contrib.staticfiles.finders.FileSystemFinder', + 'django.contrib.staticfiles.finders.AppDirectoriesFinder', +# 'django.contrib.staticfiles.finders.DefaultStorageFinder', +) + +SECRET_KEY = 'oepk-$!=)c)7+y%cdz-x46_h5bp!o-*9%dv!(sf=3r4zfqk_(t' + +TEMPLATE_LOADERS = ( + 'django.template.loaders.filesystem.Loader', + 'django.template.loaders.app_directories.Loader', +# 'django.template.loaders.eggs.Loader', +) + +MIDDLEWARE_CLASSES = ( + 'django.middleware.common.CommonMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', +) + +ROOT_URLCONF = 'helsinki.urls' + +TEMPLATE_DIRS = ( + os.path.join(os.path.dirname(__file__), "templates"), +) + +INSTALLED_APPS = ( + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.sites', + 'django.contrib.messages', + 'django.contrib.staticfiles', + 'django.contrib.admin', + 'helsinki.program', +) + +LOGGING = { + 'version': 1, + 'disable_existing_loggers': False, + 'handlers': { + 'mail_admins': { + 'level': 'ERROR', + 'class': 'django.utils.log.AdminEmailHandler' + } + }, + 'loggers': { + 'django.request':{ + 'handlers': ['mail_admins'], + 'level': 'ERROR', + 'propagate': True, + }, + } +} diff --git a/helsinki.program/templates/404.html b/helsinki.program/templates/404.html new file mode 100644 index 0000000..6281ba0 --- /dev/null +++ b/helsinki.program/templates/404.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} + +{% block title %}Seite nicht gefunden{% endblock %} + +{% block content %} +

Es tut uns leid, aber die angeforderte Seite konnte nicht gefunden werden.

+{% endblock %} \ No newline at end of file diff --git a/helsinki.program/templates/500.html b/helsinki.program/templates/500.html new file mode 100644 index 0000000..98074ab --- /dev/null +++ b/helsinki.program/templates/500.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} + +{% block title %}Serverfehler{% endblock %} + +{% block content %} +

+ Ein Fehler ist aufgetreten. + Dieser Fehler wurde an die Serververwalter per E-Mail gemeldet und sollte in Kürze behoben sein. + Vielen Dank für Ihr Verständnis. +

+{% endblock %} \ No newline at end of file diff --git a/helsinki.program/templates/base.html b/helsinki.program/templates/base.html new file mode 100644 index 0000000..2ed539e --- /dev/null +++ b/helsinki.program/templates/base.html @@ -0,0 +1,11 @@ + + + + {% block title %}{% endblock %} + + + +{% block content %}{% endblock %} + + + \ No newline at end of file diff --git a/helsinki.program/templates/program/current_box.html b/helsinki.program/templates/program/current_box.html new file mode 100644 index 0000000..d778518 --- /dev/null +++ b/helsinki.program/templates/program/current_box.html @@ -0,0 +1,39 @@ + + + Current program box + + + + +
+
Programm derzeit
+ +
+
{{ current.start|date:"H:i" }}
+
+ + {% if current.note %} +
{{ current.note.title }}
+ {% else %} +
{{ current.show.short_description }}
+ {% endif %} +
+
+ +
+
{{ next.start|date:"H:i" }}
+ +
+ +
+
{{ after_next.start|date:"H:i" }}
+ +
+
+ + + \ No newline at end of file diff --git a/helsinki.program/templates/program/day_schedule.html b/helsinki.program/templates/program/day_schedule.html new file mode 100644 index 0000000..6230314 --- /dev/null +++ b/helsinki.program/templates/program/day_schedule.html @@ -0,0 +1,63 @@ + + + Day schedule: {{ day|date:"l, d.m.Y" }} + + + + + +
+ +
+
Programmhinweise
+ {% for recommendation in recommendations %} +
+
{{ recommendation.timeslot.start|date:"d.m. H:i" }} - {{ recommendation.timeslot.end|date:"H:i" }}
+ + +
+ {% endfor %} +
+ +
+
Tagesansicht
+
{{ day|date:"l, d.m.Y" }}
+
+ {% for timeslot in timeslots %} +
+
{{ timeslot.start|date:"H:i" }}
+
  + {% for showinformation in timeslot.show.showinformation.all %} + {{ showinformation.abbrev }} + {% endfor %} + {% for showtopic in timeslot.show.showtopic.all %} + {{ showtopic.abbrev }} + {% endfor %} + {% for musicfocus in timeslot.show.musicfocus.all %} + {{ musicfocus.abbrev }} + {% endfor %} +
+
+ + {% if timeslot.note %} +
Heute: {{ timeslot.note.title }}
+ {% else %} +
{{ timeslot.show.short_description }}
+ {% endif %} +
+
+ {% endfor %} +
+
+ +
+
Legende
+ {% for broadcastformat in broadcastformats %} + + {% endfor %} +
+ + + \ No newline at end of file diff --git a/helsinki.program/templates/program/host_detail.html b/helsinki.program/templates/program/host_detail.html new file mode 100644 index 0000000..b780838 --- /dev/null +++ b/helsinki.program/templates/program/host_detail.html @@ -0,0 +1,20 @@ + + + Host detail: {{ host.name }} + + + +
+
{{ host.name }}
+ + {% if host.email %} +
{{ host.email }}
+ {% endif %} + + {% if host.website %} +
{{ host.website }}
+ {% endif %} +
+ + + \ No newline at end of file diff --git a/helsinki.program/templates/program/host_list.html b/helsinki.program/templates/program/host_list.html new file mode 100644 index 0000000..365154a --- /dev/null +++ b/helsinki.program/templates/program/host_list.html @@ -0,0 +1,16 @@ + + + Host list + + + +
+{% for host in hosts %} + +{% endfor %} +
+ + + \ No newline at end of file diff --git a/helsinki.program/templates/program/recommendations.html b/helsinki.program/templates/program/recommendations.html new file mode 100644 index 0000000..aa5866a --- /dev/null +++ b/helsinki.program/templates/program/recommendations.html @@ -0,0 +1,21 @@ + + + Recomendations + + + +
+{% for note in recommendations %} +
+
{{ note.show.broadcastformat }}
+
{{ note.timeslot.start }}
+ +
{{ note.show.short_description }}
+
{{ note.title }}
+
{{ note.content }}
+
+{% endfor %} +
+ + + \ No newline at end of file diff --git a/helsinki.program/templates/program/recommendations_box.html b/helsinki.program/templates/program/recommendations_box.html new file mode 100644 index 0000000..94a55dd --- /dev/null +++ b/helsinki.program/templates/program/recommendations_box.html @@ -0,0 +1,20 @@ + + + Recomendations box + + + + +
+
Programmhinweise
+ {% for recommendation in recommendations %} +
+
{{ recommendation.timeslot.start|date:"d.m. H:i" }}-{{ recommendation.timeslot.end|date:"H:i" }}
+ + +
+ {% endfor %} +
+ + + \ No newline at end of file diff --git a/helsinki.program/templates/program/show_detail.html b/helsinki.program/templates/program/show_detail.html new file mode 100644 index 0000000..05e678c --- /dev/null +++ b/helsinki.program/templates/program/show_detail.html @@ -0,0 +1,60 @@ + + + Show detail: {{ show.name }} + + + +
+ +
+
{{ show.name }}
+ +
+ {% for topic in show.showtopic.all %} + {{ topic.abbrev }} + {% endfor %} + + {% for information in show.showinformation.all %} + {{ information.abbrev }} + {% endfor %} + + {% for focus in show.musicfocus.all %} + {{ focus.abbrev }} + {% endfor %} + + {{ show.broadcastformat.abbrev }} +
+ +
+ {% for slot in show.programslots.all %} +
{{ slot }}
+ {% endfor %} +
+ +
{{ show.broadcastformat.format }}
+ +
+ {% for host in show.hosts.all %} +
{{ host }}
+ {% endfor %} +
+ +
{{ show.short_description }}
+ +
{{ show.description }}
+ + {% if show.email %} + + {% endif %} + + {% if show.website %} + + {% endif %} + + {% if show.cba_series_id %} + + {% endif %} +
+ + + \ No newline at end of file diff --git a/helsinki.program/templates/program/show_list.html b/helsinki.program/templates/program/show_list.html new file mode 100644 index 0000000..7643087 --- /dev/null +++ b/helsinki.program/templates/program/show_list.html @@ -0,0 +1,73 @@ + + + Show list + + + +
+{% for topic in showtopics %} +
+ {{ topic.abbrev }} + {{ topic }} +
+{% endfor %} +
+ +
+{% for information in showinformations %} +
+ {{ information.abbrev }} + {{ information }} +
+{% endfor %} +
+ +
+{% for focus in musicfoci %} +
+ {{ focus.abbrev }} + {{ focus }} +
+{% endfor %} +
+ +
+{% for show in shows %} +
+
+ {% for topic in show.showtopic.all %} + {{ topic.abbrev }} + {% endfor %} + + {% for information in show.showinformation.all %} + {{ information.abbrev }} + {% endfor %} + + {% for focus in show.musicfocus.all %} + {{ focus.abbrev }} + {% endfor %} + + {{ show.broadcastformat.abbrev }} +
+ + + +
+ {% for slot in show.programslots.all %} +
{{ slot }}
+ {% endfor %} +
+ +
{{ show.short_description }}
+
+{% endfor %} +
+ +
+{% for format in broadcastformats %} +
{{ format }}
+{% endfor %} +
+ + + \ No newline at end of file diff --git a/helsinki.program/templates/program/timeslot_detail.html b/helsinki.program/templates/program/timeslot_detail.html new file mode 100644 index 0000000..f445f5d --- /dev/null +++ b/helsinki.program/templates/program/timeslot_detail.html @@ -0,0 +1,57 @@ + + + Timeslot detail: {{ timeslot }} + + + +
+ +
+
{{ timeslot.show.name }}
+ +
+ {% for topic in timeslot.show.showtopic.all %} + {{ topic.abbrev }} + {% endfor %} + + {% for information in timeslot.show.showinformation.all %} + {{ information.abbrev }} + {% endfor %} + + {% for focus in timeslot.show.musicfocus.all %} + {{ focus.abbrev }} + {% endfor %} + + {{ timeslot.show.broadcastformat.abbrev }} +
+ +
+ {% for slot in timeslot.show.programslots.all %} +
{{ slot }}
+ {% endfor %} +
+ +
{{ timeslot.show.broadcastformat.format }}
+ +
+ {% for host in timeslot.show.hosts.all %} +
{{ host }}
+ {% endfor %} +
+ +
{{ timeslot.show.short_description }}
+ +
{{ timeslot.show.description }}
+ +
+ {% if timeslot.note %} +
+
{{ timeslot.note.title }}
+
{{ timeslot.note.content }}
+
+ {% endif %} +
+
+ + + \ No newline at end of file diff --git a/helsinki.program/templates/program/week_schedule.html b/helsinki.program/templates/program/week_schedule.html new file mode 100644 index 0000000..2969d28 --- /dev/null +++ b/helsinki.program/templates/program/week_schedule.html @@ -0,0 +1,87 @@ + + + Week schedule + + + + +
+
+
06:00
+
07:00
+
08:00
+
09:00
+
10:00
+
11:00
+
12:00
+
13:00
+
14:00
+
15:00
+
16:00
+
17:00
+
18:00
+
19:00
+
20:00
+
21:00
+
22:00
+
23:00
+
00:00
+
01:00
+
02:00
+
03:00
+
04:00
+
05:00
+
+ +
+
{{ monday|date:"l d.m.Y" }}
+ {% for timeslot in monday_timeslots %} + + {% endfor %} +
+ +
+
{{ tuesday|date:"l d.m.Y" }}
+ {% for timeslot in tuesday_timeslots %} + + {% endfor %} +
+ +
+
{{ wednesday|date:"l d.m.Y" }}
+ {% for timeslot in wednesday_timeslots %} + + {% endfor %} +
+ +
+
{{ thursday|date:"l d.m.Y" }}
+ {% for timeslot in thursday_timeslots %} + + {% endfor %} +
+ +
+
{{ friday|date:"l d.m.Y" }}
+ {% for timeslot in friday_timeslots %} + + {% endfor %} +
+ +
+
{{ saturday|date:"l d.m.Y" }}
+ {% for timeslot in saturday_timeslots %} + + {% endfor %} +
+ +
+
{{ sunday|date:"l d.m.Y" }}
+ {% for timeslot in sunday_timeslots %} + + {% endfor %} +
+
+ + + diff --git a/helsinki.program/urls.py b/helsinki.program/urls.py new file mode 100644 index 0000000..db535ce --- /dev/null +++ b/helsinki.program/urls.py @@ -0,0 +1,9 @@ +from django.conf.urls.defaults import * +from django.contrib import admin + +admin.autodiscover() + +urlpatterns = patterns('', + (r'^admin/', include(admin.site.urls)), + (r'^program/', include('helsinki.program.urls')), +) diff --git a/manage.py b/manage.py deleted file mode 100755 index 5e78ea9..0000000 --- a/manage.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python -from django.core.management import execute_manager -try: - import settings # Assumed to be in the same directory. -except ImportError: - import sys - sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__) - sys.exit(1) - -if __name__ == "__main__": - execute_manager(settings) diff --git a/settings.py b/settings.py deleted file mode 100644 index ac4ad72..0000000 --- a/settings.py +++ /dev/null @@ -1,100 +0,0 @@ -import os - -# Django settings for helsinki project. - -DEBUG = True -TEMPLATE_DEBUG = DEBUG - -ADMINS = ( - # ('Your Name', 'your_email@example.com'), -) - -MANAGERS = ADMINS - -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.mysql', - 'NAME': 'helsinki2', - 'USER': 'helsinki', - 'PASSWORD': 'helsinki' - } -} - -TIME_ZONE = 'Europe/Vienna' - -LANGUAGE_CODE = 'de' - -SITE_ID = 1 - -USE_I18N = True - -USE_L10N = True - -MEDIA_ROOT = '' - -MEDIA_URL = '' - -STATIC_ROOT = '' - -STATIC_URL = '/static/' - -ADMIN_MEDIA_PREFIX = '/static/admin/' - -STATICFILES_DIRS = () - -STATICFILES_FINDERS = ( - 'django.contrib.staticfiles.finders.FileSystemFinder', - 'django.contrib.staticfiles.finders.AppDirectoriesFinder', -# 'django.contrib.staticfiles.finders.DefaultStorageFinder', -) - -SECRET_KEY = 'oepk-$!=)c)7+y%cdz-x46_h5bp!o-*9%dv!(sf=3r4zfqk_(t' - -TEMPLATE_LOADERS = ( - 'django.template.loaders.filesystem.Loader', - 'django.template.loaders.app_directories.Loader', -# 'django.template.loaders.eggs.Loader', -) - -MIDDLEWARE_CLASSES = ( - 'django.middleware.common.CommonMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.middleware.csrf.CsrfViewMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.messages.middleware.MessageMiddleware', -) - -ROOT_URLCONF = 'helsinki.urls' - -TEMPLATE_DIRS = ( - os.path.join(os.path.dirname(__file__), "templates"), -) - -INSTALLED_APPS = ( - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.sites', - 'django.contrib.messages', - 'django.contrib.staticfiles', - 'django.contrib.admin', - 'helsinki.program', -) - -LOGGING = { - 'version': 1, - 'disable_existing_loggers': False, - 'handlers': { - 'mail_admins': { - 'level': 'ERROR', - 'class': 'django.utils.log.AdminEmailHandler' - } - }, - 'loggers': { - 'django.request':{ - 'handlers': ['mail_admins'], - 'level': 'ERROR', - 'propagate': True, - }, - } -} diff --git a/templates/404.html b/templates/404.html deleted file mode 100644 index 6281ba0..0000000 --- a/templates/404.html +++ /dev/null @@ -1,7 +0,0 @@ -{% extends "base.html" %} - -{% block title %}Seite nicht gefunden{% endblock %} - -{% block content %} -

Es tut uns leid, aber die angeforderte Seite konnte nicht gefunden werden.

-{% endblock %} \ No newline at end of file diff --git a/templates/500.html b/templates/500.html deleted file mode 100644 index 98074ab..0000000 --- a/templates/500.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "base.html" %} - -{% block title %}Serverfehler{% endblock %} - -{% block content %} -

- Ein Fehler ist aufgetreten. - Dieser Fehler wurde an die Serververwalter per E-Mail gemeldet und sollte in Kürze behoben sein. - Vielen Dank für Ihr Verständnis. -

-{% endblock %} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html deleted file mode 100644 index 2ed539e..0000000 --- a/templates/base.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - {% block title %}{% endblock %} - - - -{% block content %}{% endblock %} - - - \ No newline at end of file diff --git a/templates/program/current_box.html b/templates/program/current_box.html deleted file mode 100644 index d778518..0000000 --- a/templates/program/current_box.html +++ /dev/null @@ -1,39 +0,0 @@ - - - Current program box - - - - -
-
Programm derzeit
- -
-
{{ current.start|date:"H:i" }}
-
- - {% if current.note %} -
{{ current.note.title }}
- {% else %} -
{{ current.show.short_description }}
- {% endif %} -
-
- -
-
{{ next.start|date:"H:i" }}
- -
- -
-
{{ after_next.start|date:"H:i" }}
- -
-
- - - \ No newline at end of file diff --git a/templates/program/day_schedule.html b/templates/program/day_schedule.html deleted file mode 100644 index 6230314..0000000 --- a/templates/program/day_schedule.html +++ /dev/null @@ -1,63 +0,0 @@ - - - Day schedule: {{ day|date:"l, d.m.Y" }} - - - - - -
- -
-
Programmhinweise
- {% for recommendation in recommendations %} -
-
{{ recommendation.timeslot.start|date:"d.m. H:i" }} - {{ recommendation.timeslot.end|date:"H:i" }}
- - -
- {% endfor %} -
- -
-
Tagesansicht
-
{{ day|date:"l, d.m.Y" }}
-
- {% for timeslot in timeslots %} -
-
{{ timeslot.start|date:"H:i" }}
-
  - {% for showinformation in timeslot.show.showinformation.all %} - {{ showinformation.abbrev }} - {% endfor %} - {% for showtopic in timeslot.show.showtopic.all %} - {{ showtopic.abbrev }} - {% endfor %} - {% for musicfocus in timeslot.show.musicfocus.all %} - {{ musicfocus.abbrev }} - {% endfor %} -
-
- - {% if timeslot.note %} -
Heute: {{ timeslot.note.title }}
- {% else %} -
{{ timeslot.show.short_description }}
- {% endif %} -
-
- {% endfor %} -
-
- -
-
Legende
- {% for broadcastformat in broadcastformats %} - - {% endfor %} -
- - - \ No newline at end of file diff --git a/templates/program/host_detail.html b/templates/program/host_detail.html deleted file mode 100644 index b780838..0000000 --- a/templates/program/host_detail.html +++ /dev/null @@ -1,20 +0,0 @@ - - - Host detail: {{ host.name }} - - - -
-
{{ host.name }}
- - {% if host.email %} -
{{ host.email }}
- {% endif %} - - {% if host.website %} -
{{ host.website }}
- {% endif %} -
- - - \ No newline at end of file diff --git a/templates/program/host_list.html b/templates/program/host_list.html deleted file mode 100644 index 365154a..0000000 --- a/templates/program/host_list.html +++ /dev/null @@ -1,16 +0,0 @@ - - - Host list - - - -
-{% for host in hosts %} - -{% endfor %} -
- - - \ No newline at end of file diff --git a/templates/program/recommendations.html b/templates/program/recommendations.html deleted file mode 100644 index aa5866a..0000000 --- a/templates/program/recommendations.html +++ /dev/null @@ -1,21 +0,0 @@ - - - Recomendations - - - -
-{% for note in recommendations %} -
-
{{ note.show.broadcastformat }}
-
{{ note.timeslot.start }}
- -
{{ note.show.short_description }}
-
{{ note.title }}
-
{{ note.content }}
-
-{% endfor %} -
- - - \ No newline at end of file diff --git a/templates/program/recommendations_box.html b/templates/program/recommendations_box.html deleted file mode 100644 index 94a55dd..0000000 --- a/templates/program/recommendations_box.html +++ /dev/null @@ -1,20 +0,0 @@ - - - Recomendations box - - - - -
-
Programmhinweise
- {% for recommendation in recommendations %} -
-
{{ recommendation.timeslot.start|date:"d.m. H:i" }}-{{ recommendation.timeslot.end|date:"H:i" }}
- - -
- {% endfor %} -
- - - \ No newline at end of file diff --git a/templates/program/show_detail.html b/templates/program/show_detail.html deleted file mode 100644 index 05e678c..0000000 --- a/templates/program/show_detail.html +++ /dev/null @@ -1,60 +0,0 @@ - - - Show detail: {{ show.name }} - - - -
- -
-
{{ show.name }}
- -
- {% for topic in show.showtopic.all %} - {{ topic.abbrev }} - {% endfor %} - - {% for information in show.showinformation.all %} - {{ information.abbrev }} - {% endfor %} - - {% for focus in show.musicfocus.all %} - {{ focus.abbrev }} - {% endfor %} - - {{ show.broadcastformat.abbrev }} -
- -
- {% for slot in show.programslots.all %} -
{{ slot }}
- {% endfor %} -
- -
{{ show.broadcastformat.format }}
- -
- {% for host in show.hosts.all %} -
{{ host }}
- {% endfor %} -
- -
{{ show.short_description }}
- -
{{ show.description }}
- - {% if show.email %} - - {% endif %} - - {% if show.website %} - - {% endif %} - - {% if show.cba_series_id %} - - {% endif %} -
- - - \ No newline at end of file diff --git a/templates/program/show_list.html b/templates/program/show_list.html deleted file mode 100644 index 7643087..0000000 --- a/templates/program/show_list.html +++ /dev/null @@ -1,73 +0,0 @@ - - - Show list - - - -
-{% for topic in showtopics %} -
- {{ topic.abbrev }} - {{ topic }} -
-{% endfor %} -
- -
-{% for information in showinformations %} -
- {{ information.abbrev }} - {{ information }} -
-{% endfor %} -
- -
-{% for focus in musicfoci %} -
- {{ focus.abbrev }} - {{ focus }} -
-{% endfor %} -
- -
-{% for show in shows %} -
-
- {% for topic in show.showtopic.all %} - {{ topic.abbrev }} - {% endfor %} - - {% for information in show.showinformation.all %} - {{ information.abbrev }} - {% endfor %} - - {% for focus in show.musicfocus.all %} - {{ focus.abbrev }} - {% endfor %} - - {{ show.broadcastformat.abbrev }} -
- - - -
- {% for slot in show.programslots.all %} -
{{ slot }}
- {% endfor %} -
- -
{{ show.short_description }}
-
-{% endfor %} -
- -
-{% for format in broadcastformats %} -
{{ format }}
-{% endfor %} -
- - - \ No newline at end of file diff --git a/templates/program/timeslot_detail.html b/templates/program/timeslot_detail.html deleted file mode 100644 index f445f5d..0000000 --- a/templates/program/timeslot_detail.html +++ /dev/null @@ -1,57 +0,0 @@ - - - Timeslot detail: {{ timeslot }} - - - -
- -
-
{{ timeslot.show.name }}
- -
- {% for topic in timeslot.show.showtopic.all %} - {{ topic.abbrev }} - {% endfor %} - - {% for information in timeslot.show.showinformation.all %} - {{ information.abbrev }} - {% endfor %} - - {% for focus in timeslot.show.musicfocus.all %} - {{ focus.abbrev }} - {% endfor %} - - {{ timeslot.show.broadcastformat.abbrev }} -
- -
- {% for slot in timeslot.show.programslots.all %} -
{{ slot }}
- {% endfor %} -
- -
{{ timeslot.show.broadcastformat.format }}
- -
- {% for host in timeslot.show.hosts.all %} -
{{ host }}
- {% endfor %} -
- -
{{ timeslot.show.short_description }}
- -
{{ timeslot.show.description }}
- -
- {% if timeslot.note %} -
-
{{ timeslot.note.title }}
-
{{ timeslot.note.content }}
-
- {% endif %} -
-
- - - \ No newline at end of file diff --git a/templates/program/week_schedule.html b/templates/program/week_schedule.html deleted file mode 100644 index 2969d28..0000000 --- a/templates/program/week_schedule.html +++ /dev/null @@ -1,87 +0,0 @@ - - - Week schedule - - - - -
-
-
06:00
-
07:00
-
08:00
-
09:00
-
10:00
-
11:00
-
12:00
-
13:00
-
14:00
-
15:00
-
16:00
-
17:00
-
18:00
-
19:00
-
20:00
-
21:00
-
22:00
-
23:00
-
00:00
-
01:00
-
02:00
-
03:00
-
04:00
-
05:00
-
- -
-
{{ monday|date:"l d.m.Y" }}
- {% for timeslot in monday_timeslots %} - - {% endfor %} -
- -
-
{{ tuesday|date:"l d.m.Y" }}
- {% for timeslot in tuesday_timeslots %} - - {% endfor %} -
- -
-
{{ wednesday|date:"l d.m.Y" }}
- {% for timeslot in wednesday_timeslots %} - - {% endfor %} -
- -
-
{{ thursday|date:"l d.m.Y" }}
- {% for timeslot in thursday_timeslots %} - - {% endfor %} -
- -
-
{{ friday|date:"l d.m.Y" }}
- {% for timeslot in friday_timeslots %} - - {% endfor %} -
- -
-
{{ saturday|date:"l d.m.Y" }}
- {% for timeslot in saturday_timeslots %} - - {% endfor %} -
- -
-
{{ sunday|date:"l d.m.Y" }}
- {% for timeslot in sunday_timeslots %} - - {% endfor %} -
-
- - - diff --git a/urls.py b/urls.py deleted file mode 100644 index db535ce..0000000 --- a/urls.py +++ /dev/null @@ -1,9 +0,0 @@ -from django.conf.urls.defaults import * -from django.contrib import admin - -admin.autodiscover() - -urlpatterns = patterns('', - (r'^admin/', include(admin.site.urls)), - (r'^program/', include('helsinki.program.urls')), -) -- cgit v0.10.2