summaryrefslogtreecommitdiff
path: root/modules/organize/views
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-01-08 19:27:08 -0800
committerBharat Mediratta <bharat@menalto.com>2011-01-08 19:27:08 -0800
commit4c80ed53d2a3fa3392d2da61c730b6d30de9f2be (patch)
tree27b8d89c6eae5c6ff678f10af86332c411b8af8f /modules/organize/views
parentd0df4896b0c96099709b10fa8cbb7d15a4f20461 (diff)
Put up a more visually pleasing placeholder for items that are
missing a thumbnail. Fixes #1591.
Diffstat (limited to 'modules/organize/views')
-rw-r--r--modules/organize/views/organize_frame.html.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/organize/views/organize_frame.html.php b/modules/organize/views/organize_frame.html.php
index 0354fa1d..d8e7920c 100644
--- a/modules/organize/views/organize_frame.html.php
+++ b/modules/organize/views/organize_frame.html.php
@@ -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>')
});