Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Granule links are now a table

Mike McGannae60ab8c9f14
diff --git a/src/css/dataDownload.css b/src/css/dataDownload.css
index 14bd6ee27..20c962739 100644
--- a/src/css/dataDownload.css
+++ b/src/css/dataDownload.css
@@ -23,7 +23,7 @@
#DataDownload_SelectionListPanel ul {
display: block;
- margin: 0 1.12em;
+ margin: 0 5px;
}
#DataDownload_SelectionListPanel li {
@@ -66,4 +66,9 @@
padding: 0;
}
-
\ No newline at end of file
+#DataDownload_SelectionListPanel td {
+ border-bottom: 1px solid #303030;
+ padding: 5px;
+}
+
+
\ No newline at end of file
diff --git a/src/js/Worldview/DataDownload/SelectionListPanel.js b/src/js/Worldview/DataDownload/SelectionListPanel.js
index 935f56ef9..210a519dd 100644
--- a/src/js/Worldview/DataDownload/SelectionListPanel.js
+++ b/src/js/Worldview/DataDownload/SelectionListPanel.js
@@ -125,10 +125,8 @@ Worldview.DataDownload.SelectionListPanel = function(config, model) {
elements.push("<ul>");
$.each(links, function(index, link) {
elements.push(
- "<li>" +
- "<a href='" + link.href + "' target='_blank'>" +
- link.title + "</a>" +
- "</li>");
+ "<a href='" + link.href + "' target='_blank'>" +
+ link.title + "</a><br/>");
});
elements.push("</ul>");
return elements.join("\n");
@@ -136,11 +134,10 @@ Worldview.DataDownload.SelectionListPanel = function(config, model) {
var granuleText = function(granule) {
var elements = [
- "<ul>",
- "<li class='granuleTitle'>" + granule.label,
- linksText(granule.links),
- "</li>",
- "</ul>"
+ "<tr>",
+ "<td>" + granule.label + "</td>",
+ "<td>" + linksText(granule.links) + "</td>",
+ "</tr>"
];
return elements.join("\n");
};
@@ -156,9 +153,12 @@ Worldview.DataDownload.SelectionListPanel = function(config, model) {
}
elements.push("<h5>Selected Data</h5>");
+ elements.push("<table>");
+
$.each(product.list, function(index, item) {
elements.push(granuleText(item));
});
+ elements.push("</table>");
return elements.join("\n");
};
@@ -168,7 +168,7 @@ Worldview.DataDownload.SelectionListPanel = function(config, model) {
$.each(selection, function(key, product) {
elements.push(productText(product));
});
- var text = elements.join("\n<hr/>\n") + "<br/>";
+ var text = elements.join("\n<br/>\n") + "<br/>";
return text;
};