webpage: display your uploads

This commit is contained in:
mappu 2017-10-08 15:22:41 +13:00
parent e4c5f7d83e
commit 74212353ec

View File

@ -33,7 +33,17 @@ $.get("/about", function(ret) {
// Load upload widget
contented.init("#surrogate-area", function(items) {
console.log(items);
var $table = $("<table>");
for (var i = 0; i < items.length; ++i) {
$table.append($("<tr>").append([
$("<td>").text(items[i]),
$("<td>").html("<a target='_blank' href='/view/" + items[i] + "'>view</a>"),
$("<td>").html("<a target='_blank' href='/info/" + items[i] + "'>info</a>")
]))
}
$("#surrogate-area").html($table);
});
</script>
</body>