updated download summary
parent
b1d33afd0a
commit
16fffca534
|
@ -13,13 +13,11 @@
|
|||
dataType: "jsonp",
|
||||
url: "https://api.github.com/repos/ran-jit/tomcat-cluster-redis-session-manager/releases",
|
||||
success: function(data){
|
||||
var content = "<table border='1px' style='width: 80%;margin-left: 10%;margin-right: 10%;line-height: 1.5;'><tr><th style='width: 30%;'>tag</th><th>asset name & download count</th></tr>";
|
||||
for(var i=0; i< data.data.length; i++) {
|
||||
var tag = data.data[i];
|
||||
var downloadCount = 0;
|
||||
|
||||
let content = "<table border='1px' style='width: 80%;margin-left: 10%;margin-right: 10%;line-height: 1.5;'><tr><th style='width: 30%;'>tag</th><th>asset name & download count</th></tr>";
|
||||
for(let i=0; i< data.data.length; i++) {
|
||||
const tag = data.data[i];
|
||||
for(var j=0; j< tag.assets.length; j++) {
|
||||
var asset = tag.assets[j];
|
||||
const asset = tag.assets[j];
|
||||
|
||||
content = content + "<tr><td style='width: 10%;'>"+ tag.tag_name + "</td>";
|
||||
content = content + "<td>" + asset.name + "<div style='text-align:right;'>" + asset.download_count + "</div></td></tr>";
|
||||
|
@ -31,9 +29,5 @@
|
|||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue