From 043b2cc7fb6e388c4f5717c6896628c762699ca6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Mon, 3 Nov 2014 09:21:21 +0100 Subject: [PATCH] added total number of downloads in the package html pages. --- NEWS | 5 +++++ themes/default/js/ppastats.js | 5 +++++ themes/default/templates/pkg.tpl | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/NEWS b/NEWS index 6bc4688..6fecf53 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,8 @@ +v1.3.3 +------ + +* added total number of downloads in the package html pages. + v1.3.2 ------ diff --git a/themes/default/js/ppastats.js b/themes/default/js/ppastats.js index 18f580f..fd4320d 100644 --- a/themes/default/js/ppastats.js +++ b/themes/default/js/ppastats.js @@ -89,6 +89,8 @@ function ppastats_distros(distros) { function ppastats_pkg(json_url) { $(document).ready(function() { $.getJSON(json_url, function(data) { + var downloads = 0; + $("#ppa_owner").html(data["ppa_owner"]); $("#ppa_name").html(data["ppa_name"]); $("#pkg_name").html(data["name"]); @@ -103,8 +105,11 @@ function ppastats_pkg(json_url) { $("#distros").append("