From 54611a97d636238e9bba65e6d96690ac1446de09 Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Wed, 6 Jan 2016 19:59:46 +0100 Subject: renamed model field diff --git a/program/migrations/0002_host_always_visible.py b/program/migrations/0002_host_always_visible.py deleted file mode 100644 index a0f81ab..0000000 --- a/program/migrations/0002_host_always_visible.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('program', '0001_initial'), - ] - - operations = [ - migrations.AddField( - model_name='host', - name='always_visible', - field=models.BooleanField(default=False, verbose_name='Always visible'), - ), - ] diff --git a/program/migrations/0002_host_is_always_visible.py b/program/migrations/0002_host_is_always_visible.py new file mode 100644 index 0000000..9abf2bd --- /dev/null +++ b/program/migrations/0002_host_is_always_visible.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('program', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='host', + name='is_always_visible', + field=models.BooleanField(default=False, verbose_name='Is always visible'), + ), + ] diff --git a/program/templates/boxes/recommendation.html b/program/templates/boxes/recommendation.html new file mode 100644 index 0000000..d2bb7d2 --- /dev/null +++ b/program/templates/boxes/recommendation.html @@ -0,0 +1,40 @@ + + + + + Recomendations box + + + {% if recommendation_list %} +
+
Programmhinweise
+
+ + {% for item in recommendation_list %} + + + + + + {% endfor %} +
   + {{ item.start|date:"d.m. H:i" }} - + {{ item.end|date:"H:i" }}
+

+ {{ item.show.name }} +

+

+ {% if item.note %} + {{ item.note.title }}
+ {% else %} + {{ item.show.broadcastformat.format }}
+ {% endif %} + [weiter] +

+
+
+
+ {% endif %} + + diff --git a/program/templates/boxes/recommendations.html b/program/templates/boxes/recommendations.html deleted file mode 100644 index 2174654..0000000 --- a/program/templates/boxes/recommendations.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - Recomendations box - - - {% if recommendation_list %} -
-
Programmhinweise
-
- - {% for item in recommendation_list %} - - - - - - {% endfor %} -
   - {{ item.start|date:"d.m. H:i" }} - - {{ item.end|date:"H:i" }}
-

- {{ item.show.name }} -

-

- {% if item.note %} - {{ item.note.title }}
- {% else %} - {{ item.show.broadcastformat.format }}
- {% endif %} - [weiter] -

-
-
-
- {% endif %} - - diff --git a/program/templates/recommendation_list.html b/program/templates/recommendation_list.html new file mode 100644 index 0000000..3836a35 --- /dev/null +++ b/program/templates/recommendation_list.html @@ -0,0 +1,45 @@ + + + Tipps — Radio Helsinki - Freies Radio Graz + + + +
+

Programmhinweise

+
+{% for recommendation in recommendation_list %} +
+
+ {% for si in recommendation.show.showinformation.all %} + {{ si.abbrev }} + {% endfor %} + {% for st in recommendation.show.showtopic.all %} + {{ st.abbrev }} + {% endfor %} + {% for mf in recommendation.show.musicfocus.all %} + {{ mf.abbrev }} + {% endfor %} +
+
+

+ {{ recommendation.show.name }}
+ vom {{ recommendation.start|date:"d.m. H:i" }}-{{ recommendation.end|date:"H:i" }} +

+ {% if recommendation.note %} +

+ {{ recommendation.note.title }} +

+
{{ recommendation.note.content|safe}}
+ {% else %} +

+ {{ recommendation.show.broadcastformat.format }} +

+ {% endif %} +
+
+{% endfor %} +
+
+ + + diff --git a/program/templates/recommendations.html b/program/templates/recommendations.html deleted file mode 100644 index ba9a719..0000000 --- a/program/templates/recommendations.html +++ /dev/null @@ -1,45 +0,0 @@ - - - Tipps — Radio Helsinki - Freies Radio Graz - - - -
-

Programmhinweise

-
-{% for item in recommendation_list %} -
-
- {% for ab in item.show.showinformation.all %} - {{ ab.abbrev }} - {% endfor %} - {% for ab in item.show.showtopic.all %} - {{ ab.abbrev }} - {% endfor %} - {% for ab in item.show.musicfocus.all %} - {{ ab.abbrev }} - {% endfor %} -
-
-

- {{ item.show.name }}
- vom {{ item.start|date:"d.m. H:i" }}-{{ item.end|date:"H:i" }} -

- {% if item.note %} -

- {{ item.note.title }} -

-
{{ item.note.content|safe}}
- {% else %} -

- {{ item.show.broadcastformat.format }} -

- {% endif %} -
-
-{% endfor %} -
-
- - - -- cgit v0.10.2