Add matchied services and used services links.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@963395 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/webconsole-plugin/src/main/resources/res/ui/instance_detail.js b/ipojo/webconsole-plugin/src/main/resources/res/ui/instance_detail.js
index af4e10e..655270a 100644
--- a/ipojo/webconsole-plugin/src/main/resources/res/ui/instance_detail.js
+++ b/ipojo/webconsole-plugin/src/main/resources/res/ui/instance_detail.js
@@ -95,7 +95,13 @@
if (service.matching) {
var list = $('<ul>');
for (var x in service.matching) {
- list.append($('<li>').append(service.matching[x].id)); // TODO Link
+ if (service.matching[x].instance) {
+ var text = service.matching[x].instance + ' [' + service.matching[x].id + ']';
+ var link = $('<a href=\'' + instances_url + '/' + service.matching[x].instance +'\'>' + text + '</a>');
+ list.append($('<li>').append(link));
+ } else {
+ list.append($('<li>').append(service.matching[x].id));
+ }
}
entry.find('td.matching').html(list);
} else {
@@ -105,7 +111,13 @@
if (service.used) {
var list = $('<ul>');
for (var x in service.used) {
- list.append($('<li>').append(service.used[x].id)); // TODO Link
+ if (service.used[x].instance) {
+ var text = service.used[x].instance + ' [' + service.used[x].id + ']';
+ var link = $('<a href=\'' + instances_url + '/' + service.used[x].instance +'\'>' + text + '</a>');
+ list.append($('<li>').append(link));
+ } else {
+ list.append($('<li>').append(service.used[x].id));
+ }
}
entry.find('td.used').html(list);
} else {