forked from 0x2620/pandora
#1876 actor->cast, fix background for non js page
This commit is contained in:
parent
375a6ed659
commit
3fb59e6a99
2 changed files with 7 additions and 3 deletions
|
@ -1247,6 +1247,9 @@ def item(request, id):
|
|||
value = item.get(k)
|
||||
key = utils.get_by_id(settings.CONFIG['itemKeys'], k)
|
||||
if value:
|
||||
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])
|
||||
|
|
|
@ -31,7 +31,8 @@
|
|||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<div style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; text-align: center; background-color: rgb(144, 144, 144); font-family: Lucida Grande, Segoe UI, DejaVu Sans, Lucida Sans Unicode, Helvetica, Arial, sans-serif; font-size: 11px; color: rgb(0, 0, 0); -moz-user-select: none; -o-user-select: none; -webkit-user-select: none">
|
||||
<div style="position: fixed; left: 0; top: 0; right: 0; bottom: 0; background-color: rgb(144, 144, 144);"></div>
|
||||
<div style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; text-align: center; font-family: Lucida Grande, Segoe UI, DejaVu Sans, Lucida Sans Unicode, Helvetica, Arial, sans-serif; font-size: 11px; color: rgb(0, 0, 0); -moz-user-select: none; -o-user-select: none; -webkit-user-select: none">
|
||||
<img src="/{{id}}/{{icon}}128.jpg" alt="" style="padding-top: 128px; -moz-user-drag: none; -o-user-drag: none; -webkit-user-drag: none">
|
||||
<div style="position: absolute; width: 512px; left: 0; right: 0; margin: auto; -moz-user-select: text; -o-user-select: text; -webkit-user-select: text">
|
||||
<div style="padding: 16px 0 8px 0; font-weight: bold; font-size: 13px">{{title}}</div>
|
||||
|
@ -46,7 +47,7 @@
|
|||
{{c.annotations|safe}}
|
||||
</div>
|
||||
{% endfor %}
|
||||
<div style="padding-top: 16px">{{settings.SITENAME}} requires JavaScript.</div>
|
||||
<div style="clear: both;padding-top: 16px;padding-bottom: 16px">{{settings.SITENAME}} requires JavaScript.</div>
|
||||
</div>
|
||||
</div>
|
||||
</noscript>
|
||||
|
|
Loading…
Reference in a new issue