FELIX-2234 : Reduce status information from bundle plugin
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1440488 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/resources/res/ui/bundles.js b/webconsole/src/main/resources/res/ui/bundles.js
index dac260a..229f28d 100644
--- a/webconsole/src/main/resources/res/ui/bundles.js
+++ b/webconsole/src/main/resources/res/ui/bundles.js
@@ -25,7 +25,24 @@
function renderData( eventData, filter ) {
lastBundleData = eventData;
var s = eventData.s;
- $('.statline').html(i18n.statline.msgFormat(s[0], s[1], s[2], s[3], s[4]));
+ var statline = i18n.statlinePrefix + ' ' + i18n.statlinePartA.msgFormat(s[0]);
+ if ( s[0] == s[1] || s[0] == s[1] + s[2]) {
+ statline += ' - ' + i18n.statlineAll.msgFormat(s[0]);
+ } else {
+ if ( s[1] > 0 ) {
+ statline += ', ' + i18n.statlinePartB.msgFormat(s[1]);
+ }
+ if ( s[2] > 0 ) {
+ statline += ', ' + i18n.statlinePartC.msgFormat(s[2]);
+ }
+ if ( s[3] > 0 ) {
+ statline += ', ' + i18n.statlinePartD.msgFormat(s[3]);
+ }
+ if ( s[4] > 0 ) {
+ statline += ', ' + i18n.statlinePartE.msgFormat(s[4]);
+ }
+ }
+ $('.statline').html(statline);
bundlesBody.empty();
for ( var idx in eventData.data ) {
if ( currentBundle == null || !drawDetails || currentBundle == eventData.data[idx].id) {