Commit 94a6d106 authored by Leigh B Stoller's avatar Leigh B Stoller

Say something useful when user has no images.

parent 8e11a390
......@@ -46,8 +46,13 @@ $(function ()
return;
}
var images = json.value;
if (images.length == 0)
if (images.length == 0) {
// No images, say something.
if (count <= 0 && imagelist.length == 0) {
$('#no-images-message').removeClass("hidden");
}
return;
}
// Save for later
imagelist[name] = images;
......
......@@ -88,6 +88,11 @@ echo "<div id='main-body'>
<div id='spinner'>
<center id='spinner'><img src='images/spinner.gif' /></center><br>
</div>
<div id='no-images-message' class='hidden'>
<center>
You have no images (clones or snapshots) yet.
</center>
</div>
</div>\n";
# Place to hang the modals for now
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment