Put up a more visually pleasing placeholder for items that are

missing a thumbnail.  Fixes #1591.
This commit is contained in:
Bharat Mediratta
2011-01-08 19:27:08 -08:00
parent d0df4896b0
commit 4c80ed53d2
3 changed files with 22 additions and 2 deletions

View File

@@ -213,10 +213,18 @@
selectedClass: "selected",
tpl: new Ext.XTemplate(
'<tpl for=".">',
'<tpl if="thumb_url">',
'<div class="thumb thumb-{type}" id="thumb-{id}" rel="{id}">',
'<img src="{thumb_url}" width="{width}" height="{height}" title="{title}">',
'<div class="icon"></div>',
'</div>',
'</tpl>',
'<tpl if="!thumb_url">',
'<div class="thumb thumb-missing thumb-{type}" id="thumb-{id}" rel="{id}">',
'<span>' + <?= t("No thumbnail")->for_js() ?> + '</span>',
'<div class="icon"></div>',
'</div>',
'</tpl>',
'</tpl>')
});