Fixed FELIX-3431 UPnP plugin should provide a better status line
https://issues.apache.org/jira/browse/FELIX-3431

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1309343 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole-plugins/upnp/src/main/resources/res/upnp.html b/webconsole-plugins/upnp/src/main/resources/res/upnp.html
index 67e1d5f..9e66769 100644
--- a/webconsole-plugins/upnp/src/main/resources/res/upnp.html
+++ b/webconsole-plugins/upnp/src/main/resources/res/upnp.html
@@ -9,7 +9,9 @@
 	args_type    : '${args.type}',

 	args_value   : '${args.value}',

 	no_actions   : '${no.actions}',

-	no_params_out: '${no.params.out}'

+	no_params_out: '${no.params.out}',

+	status_devs  : '${status.devs}',

+	status_none  : '${status.none}'

 }

 // ]]>

 </script>

diff --git a/webconsole-plugins/upnp/src/main/resources/res/upnp.js b/webconsole-plugins/upnp/src/main/resources/res/upnp.js
index 2c24d49..c77a3e2 100644
--- a/webconsole-plugins/upnp/src/main/resources/res/upnp.js
+++ b/webconsole-plugins/upnp/src/main/resources/res/upnp.js
@@ -273,8 +273,10 @@
 				var html = addDevice(this);

 				browser.treeview( { add: html.appendTo(browser) } );

 			});

+			$('.statline').text(i18n.status_devs.msgFormat(data.devices.length));

 		} else {

-			browser.append('','No devices available', '');

+			$('.statline').text(i18n.status_none);

+			browser.append('', i18n.status_none, '');

 		}

 

 		// update selected items