mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-21 20:09:12 -04:00
Put up a more visually pleasing placeholder for items that are
missing a thumbnail. Fixes #1591.
This commit is contained in:
@@ -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>')
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user