[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
This commit is contained in:
Olivier Lamy 2013-04-24 09:50:14 +00:00
parent 762245c2b6
commit bcd68a2437
1 changed files with 8 additions and 8 deletions

View File

@ -1080,13 +1080,13 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
{ headerText: "Artifact Count", rowText: "totalArtifactCount" }, { headerText: "Artifact Count", rowText: "totalArtifactCount" },
{ headerText: "Group Count", rowText: "totalGroupCount" }, { headerText: "Group Count", rowText: "totalGroupCount" },
{ headerText: "Project Count", rowText: "totalProjectCount" }, { headerText: "Project Count", rowText: "totalProjectCount" },
{ headerText: "Archetypes", rowText: function (item) { return item.totalCountForType.pom === "" ? item.totalCountForType.pom : "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.jar === "" ? item.totalCountForType.jar : "0" } }, { 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" } }, { 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" } }, { 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" } }, { 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" } }, { 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" } } { headerText: "Zips", rowText: function (item) { return !item.totalCountForType.zip || item.totalCountForType.zip === "" ? "0" : item.totalCountForType.zip } }
], ],
pageSize: 10 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); return new CookieInformation(data.path,data.domain,data.secure,data.timeout,data.rememberMeEnabled);
} }
}); });