diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-03-13 17:30:06 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-03-13 17:30:06 (GMT) |
commit | 1ea3eeb4c99a365a38bf3b64605f91ac0dfea788 (patch) | |
tree | cff33d272fb12e2f23ca0ae2529e62e50e51a1c7 /templates | |
parent | 9a02c4960f14cbb7ee9f0df7d6b8708907d5af94 (diff) |
simplified recommendations view, fixed template for recommendations, added template for recommendations box.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/program/recommendations.html | 9 | ||||
-rw-r--r-- | templates/program/recommendations_box.html | 20 |
2 files changed, 25 insertions, 4 deletions
diff --git a/templates/program/recommendations.html b/templates/program/recommendations.html index 499fe4e..aa5866a 100644 --- a/templates/program/recommendations.html +++ b/templates/program/recommendations.html @@ -5,13 +5,14 @@ <body> <div id="recommendations"> -{% for note in recommendation_list %} +{% for note in recommendations %} <div class="show"> - <div class="broadcast-format">{{ note.show.broadcastformat }}</div> - <div class="time-slot">{{ note.timeslot.start }}</div> + <div class="broadcastformat">{{ note.show.broadcastformat }}</div> + <div class="timeslot">{{ note.timeslot.start }}</div> <div class="show-name"><a href="{% url show-detail note.show.slug %}">{{ note.show.name }}</a></div> <div class="show-short-description">{{ note.show.short_description }}</div> - <div class="note-title"><a href="{% url timeslot-detail note.timeslot.id %}">{{ note.title }}</a></div> + <div class="note-title">{{ note.title }}</div> + <div class="note-content">{{ note.content }}</div> </div> {% endfor %} </div> diff --git a/templates/program/recommendations_box.html b/templates/program/recommendations_box.html new file mode 100644 index 0000000..d0ced36 --- /dev/null +++ b/templates/program/recommendations_box.html @@ -0,0 +1,20 @@ +<html> +<head> + <title>Recomendations Box</title> +</head> +<body> + +<div id="recommendations"> +{% for note in recommendations %} + <div class="show"> + <div class="broadcastformat">{{ note.show.broadcastformat }}</div> + <div class="timeslot">{{ note.timeslot.start }}</div> + <div class="show-name"><a href="{% url show-detail note.show.slug %}">{{ note.show.name }}</a></div> + <div class="show-short-description">{{ note.show.short_description }}</div> + <div class="note-title"><a href="{% url timeslot-detail note.timeslot.id %}">{{ note.title }}</a></div> + </div> +{% endfor %} +</div> + +</body> +</html>
\ No newline at end of file |