From 3fb59e6a999d7fe037bfecf55d8fd13c363eeaf2 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 16 Jan 2014 10:02:08 +0000 Subject: [PATCH] #1876 actor->cast, fix background for non js page --- pandora/item/views.py | 5 ++++- pandora/templates/item.html | 5 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pandora/item/views.py b/pandora/item/views.py index 4c6df3eb2..9958d7117 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -1247,7 +1247,10 @@ def item(request, id): value = item.get(k) key = utils.get_by_id(settings.CONFIG['itemKeys'], k) if value: - title = key['title'] if key else k.capitalize() + if k == 'actor': + title = 'Cast' + else: + title = key['title'] if key else k.capitalize() if isinstance(value, list): value = value = u', '.join([unicode(v) for v in value]) elif key and key.get('type') == 'float': diff --git a/pandora/templates/item.html b/pandora/templates/item.html index c101b2fab..b1df15164 100644 --- a/pandora/templates/item.html +++ b/pandora/templates/item.html @@ -31,7 +31,8 @@