@{
// Create entry for each ToolInstance that this dataset has been uploaded to
var htmlStr = ""
instanceMap.get(instanceID) match {
case Some(inst) => {
if (inst.url == "") {
htmlStr += inst.name+" (not yet ready)"
htmlStr += inst.id
}
else htmlStr += "
"+inst.name+""
htmlStr += ""
if (inst.uploadHistory.keys.toList.length == 1)
htmlStr += "1 dataset uploaded"
else
htmlStr += inst.uploadHistory.keys.toList.length.toString + " datasets uploaded"
}
case None => {}
}
Html(htmlStr)
}