From 00869b876e8736e7154310f37b4f14f7c59d5b30 Mon Sep 17 00:00:00 2001 From: Sanjay B Date: Tue, 9 Apr 2013 16:36:58 +0530 Subject: [PATCH] create includes for media gallery and buzzitems --- itf/templates/includes/buzzitems.html | 11 +++++++ itf/templates/includes/media_gallery.html | 27 +++++++++++++++++ itf/templates/modules/events/event.html | 30 ++----------------- itf/templates/modules/itfprofiles/person.html | 13 ++------ .../modules/itfprofiles/production.html | 8 +++-- .../modules/itfprofiles/theatregroup.html | 2 +- itf/templates/modules/scriptbank/script.html | 27 +---------------- 7 files changed, 49 insertions(+), 69 deletions(-) create mode 100644 itf/templates/includes/buzzitems.html create mode 100644 itf/templates/includes/media_gallery.html diff --git a/itf/templates/includes/buzzitems.html b/itf/templates/includes/buzzitems.html new file mode 100644 index 0000000..2dd7417 --- /dev/null +++ b/itf/templates/includes/buzzitems.html @@ -0,0 +1,11 @@ + + {% if buzzitems %} +
+ + + {% for item in buzzitems %} + {{ item.title }} +
{{ item.blurb }}
+ {% endfor %} +
+ {% endif %} diff --git a/itf/templates/includes/media_gallery.html b/itf/templates/includes/media_gallery.html new file mode 100644 index 0000000..78035d8 --- /dev/null +++ b/itf/templates/includes/media_gallery.html @@ -0,0 +1,27 @@ + +
+

Albums

+ {% for g in obj.galleries.all %} + {% thumbnail g.thumbnail "160x120" crop="center" as thumb %} + + {{ g.title }} + + {% endthumbnail %} + {% endfor %} + + +
+ +
+ + {% if obj.get_videos %} +
+

Videos

+ {% for v in obj.get_videos %} + + + + {% endfor %} + {% endif %} + +
diff --git a/itf/templates/modules/events/event.html b/itf/templates/modules/events/event.html index 25a6544..fbadbf3 100644 --- a/itf/templates/modules/events/event.html +++ b/itf/templates/modules/events/event.html @@ -41,37 +41,11 @@ $(function() {
-

Reviews

+ + {% include 'includes/buzzitems.html' %} +
{% load comments %} diff --git a/itf/templates/modules/itfprofiles/theatregroup.html b/itf/templates/modules/itfprofiles/theatregroup.html index 347beef..4c18db4 100644 --- a/itf/templates/modules/itfprofiles/theatregroup.html +++ b/itf/templates/modules/itfprofiles/theatregroup.html @@ -266,7 +266,7 @@
diff --git a/itf/templates/modules/scriptbank/script.html b/itf/templates/modules/scriptbank/script.html index d5fecc2..133231f 100755 --- a/itf/templates/modules/scriptbank/script.html +++ b/itf/templates/modules/scriptbank/script.html @@ -250,32 +250,7 @@ $(function() {