felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clem...@apache.org
Subject svn commit: r963395 - /felix/trunk/ipojo/webconsole-plugin/src/main/resources/res/ui/instance_detail.js
Date Mon, 12 Jul 2010 17:45:21 GMT
Author: clement
Date: Mon Jul 12 17:45:21 2010
New Revision: 963395

URL: http://svn.apache.org/viewvc?rev=963395&view=rev
Log:
Add matchied services and used services links.

Modified:
    felix/trunk/ipojo/webconsole-plugin/src/main/resources/res/ui/instance_detail.js

Modified: felix/trunk/ipojo/webconsole-plugin/src/main/resources/res/ui/instance_detail.js
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/webconsole-plugin/src/main/resources/res/ui/instance_detail.js?rev=963395&r1=963394&r2=963395&view=diff
==============================================================================
--- felix/trunk/ipojo/webconsole-plugin/src/main/resources/res/ui/instance_detail.js (original)
+++ felix/trunk/ipojo/webconsole-plugin/src/main/resources/res/ui/instance_detail.js Mon Jul
12 17:45:21 2010
@@ -95,7 +95,13 @@ function createDetail(instance) {
             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 @@ function createDetail(instance) {
              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 {



Mime
View raw message