diff options
author | Olivier Lamy <olamy@apache.org> | 2013-04-24 09:50:14 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-04-24 09:50:14 +0000 |
commit | bcd68a2437a3b9be8cb89afefda0735e7e8a6a36 (patch) | |
tree | a904c714fc1a9fc5ffde5a9d47e316ff3443e20d | |
parent | 762245c2b633217578cd398da7bf9925d30c0ddc (diff) | |
download | archiva-bcd68a2437a3b9be8cb89afefda0735e7e8a6a36.tar.gz archiva-bcd68a2437a3b9be8cb89afefda0735e7e8a6a36.zip |
[MRM-1753] Number of artifacts type is not displayed in the statistics view
Submitted by Antoine ROUAZE
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1471335 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/general-admin.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/general-admin.js b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/general-admin.js index 92fd0b3b8..9e07b3dd4 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/general-admin.js +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/general-admin.js @@ -1080,13 +1080,13 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout" { headerText: "Artifact Count", rowText: "totalArtifactCount" }, { headerText: "Group Count", rowText: "totalGroupCount" }, { headerText: "Project Count", rowText: "totalProjectCount" }, - { headerText: "Archetypes", rowText: function (item) { return item.totalCountForType.pom === "" ? item.totalCountForType.pom : "0"} }, - { headerText: "Jars", rowText: function (item) { return item.totalCountForType.jar === "" ? item.totalCountForType.jar : "0" } }, - { headerText: "Wars", rowText: function (item) { return item.totalCountForType.war === "" ? item.totalCountForType.war : "0" } }, - { headerText: "Ears", rowText: function (item) { return item.totalCountForType.ear === "" ? item.totalCountForType.ear : "0" } }, - { headerText: "Exes", rowText: function (item) { return item.totalCountForType.exe === "" ? item.totalCountForType.exe : "0" } }, - { headerText: "Dlls", rowText: function (item) { return item.totalCountForType.dll === "" ? item.totalCountForType.dll : "0" } }, - { headerText: "Zips", rowText: function (item) { return item.totalCountForType.zip === "" ? item.totalCountForType.zip : "0" } } + { headerText: "Archetypes", rowText: function (item) { return !item.totalCountForType.pom || item.totalCountForType.pom === "" ? "0" : item.totalCountForType.pom } }, + { headerText: "Jars", rowText: function (item) { return !item.totalCountForType.war || item.totalCountForType.jar === "" ? "0" : item.totalCountForType.jar } }, + { headerText: "Wars", rowText: function (item) { return !item.totalCountForType.war || item.totalCountForType.war === "" ? "0" : item.totalCountForType.jar } }, + { headerText: "Ears", rowText: function (item) { return !item.totalCountForType.ear || item.totalCountForType.ear === "" ? "0" : item.totalCountForType.ear } }, + { headerText: "Exes", rowText: function (item) { return !item.totalCountForType.exe || item.totalCountForType.exe === "" ? "0" : item.totalCountForType.exe } }, + { headerText: "Dlls", rowText: function (item) { return !item.totalCountForType.dll || item.totalCountForType.dll === "" ? "0" : item.totalCountForType.dll} }, + { headerText: "Zips", rowText: function (item) { return !item.totalCountForType.zip || item.totalCountForType.zip === "" ? "0" : item.totalCountForType.zip } } ], pageSize: 10 }); @@ -2070,4 +2070,4 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout" return new CookieInformation(data.path,data.domain,data.secure,data.timeout,data.rememberMeEnabled); } -});
\ No newline at end of file +}); |