From 16fffca53454e5cd8f7bbea3c13a9b95e9acce6a Mon Sep 17 00:00:00 2001 From: Ranjith Manickam Date: Sun, 9 Feb 2020 16:23:54 +0530 Subject: [PATCH] updated download summary --- src/main/resources/download_summary.html | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/main/resources/download_summary.html b/src/main/resources/download_summary.html index b293198..6777499 100644 --- a/src/main/resources/download_summary.html +++ b/src/main/resources/download_summary.html @@ -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 = ""; - for(var i=0; i< data.data.length; i++) { - var tag = data.data[i]; - var downloadCount = 0; - + let content = "
tagasset name & download count
"; + 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 + ""; content = content + ""; @@ -31,9 +29,5 @@ }); }); - - -
tagasset name & download count
"+ tag.tag_name + "" + asset.name + "
" + asset.download_count + "
- \ No newline at end of file