webpage: display your uploads
This commit is contained in:
parent
e4c5f7d83e
commit
74212353ec
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user