From 291fe9822fdec5d8a16fd9dc3f7db1a20f631d19 Mon Sep 17 00:00:00 2001 From: Sanjay B Date: Wed, 4 Sep 2013 20:18:31 +0530 Subject: [PATCH] add images to template thumbnails --- itf/app/models.py | 4 ++-- itf/templates/modules/itfprofiles/person.html | 4 ++-- itf/templates/modules/itfprofiles/production.html | 2 +- itf/templates/modules/itfprofiles/theatregroup.html | 10 +++++----- itf/templates/modules/scriptbank/script.html | 6 +++--- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/itf/app/models.py b/itf/app/models.py index 145a728..a1d427a 100755 --- a/itf/app/models.py +++ b/itf/app/models.py @@ -243,9 +243,9 @@ class ItfModel(models.Model): try: thumb = get_thumbnail(imgfield, size, crop="center").url except: - thumb = '' + thumb = 'http://placehold.it/%s' % size else: - thumb = '' # Add default image for site + thumb = 'http://placehold.it/%s' % size # Add default image for site return { 'thumb': thumb } diff --git a/itf/templates/modules/itfprofiles/person.html b/itf/templates/modules/itfprofiles/person.html index a6c10c0..fd939fc 100644 --- a/itf/templates/modules/itfprofiles/person.html +++ b/itf/templates/modules/itfprofiles/person.html @@ -145,7 +145,7 @@ $(function() { {% for group in groups %}
- /static/images/150x150.jpg + {{ group.group.name }}
@@ -220,7 +220,7 @@ $(function() { {% for p in productions %}
- /static/images/150x150.jpg + {{ p.production.name }}
diff --git a/itf/templates/modules/itfprofiles/production.html b/itf/templates/modules/itfprofiles/production.html index e7c113b..d362657 100644 --- a/itf/templates/modules/itfprofiles/production.html +++ b/itf/templates/modules/itfprofiles/production.html @@ -142,7 +142,7 @@ $(function() {
- /static/images/150x150.jpg + /static/images/150x150.jpg
diff --git a/itf/templates/modules/itfprofiles/theatregroup.html b/itf/templates/modules/itfprofiles/theatregroup.html index 4c18db4..3a6f25f 100644 --- a/itf/templates/modules/itfprofiles/theatregroup.html +++ b/itf/templates/modules/itfprofiles/theatregroup.html @@ -122,7 +122,7 @@ {% for p in people %}
- /static/images/150x150.jpg + /static/images/150x150.jpg
@@ -149,7 +149,7 @@
- /static/images/150x150.jpg + {{ p.person }}
@@ -179,14 +179,14 @@ {% for p in productions %}
- /static/images/150x150.jpg + {{ p.name }}
{{ p.name }} {% if p.debut_date %} {{ debut_date|date:"Y" }} {% endif %}
-
Title Credits: (not implemented)
-
No. of shows: (not implemented)
+
diff --git a/itf/templates/modules/scriptbank/script.html b/itf/templates/modules/scriptbank/script.html index c2f0a37..86a0d02 100755 --- a/itf/templates/modules/scriptbank/script.html +++ b/itf/templates/modules/scriptbank/script.html @@ -83,7 +83,7 @@ $(function() { {% for p in sibling_productions %}
- /static/images/150x150.jpg + {{ p.name }}
@@ -121,7 +121,7 @@ $(function() {
- /static/images/150x150.jpg + {{ p.name }}
@@ -157,7 +157,7 @@ $(function() { {% for r in related_people %}
- /static/images/150x150.jpg + {{ r.person.first_name }} {{ r.person.last_name }}