qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eal...@apache.org
Subject qpid-dispatch git commit: DISPATCH-314 Draw normal listener ports with light green background
Date Wed, 14 Dec 2016 19:24:12 GMT
Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 123fb9502 -> ce5584d0b


DISPATCH-314 Draw normal listener ports with light green background


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/ce5584d0
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/ce5584d0
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/ce5584d0

Branch: refs/heads/master
Commit: ce5584d0b31cae15511a2f9a2a5209895f30e687
Parents: 123fb95
Author: Ernest Allen <eallen@redhat.com>
Authored: Wed Dec 14 14:23:58 2016 -0500
Committer: Ernest Allen <eallen@redhat.com>
Committed: Wed Dec 14 14:23:58 2016 -0500

----------------------------------------------------------------------
 console/stand-alone/plugin/css/plugin.css    |  4 ++++
 console/stand-alone/plugin/js/qdrTopology.js | 11 ++++++++---
 2 files changed, 12 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/ce5584d0/console/stand-alone/plugin/css/plugin.css
----------------------------------------------------------------------
diff --git a/console/stand-alone/plugin/css/plugin.css b/console/stand-alone/plugin/css/plugin.css
index 7226139..7655728 100644
--- a/console/stand-alone/plugin/css/plugin.css
+++ b/console/stand-alone/plugin/css/plugin.css
@@ -930,3 +930,7 @@ div#durationSlider, div#rateSlider {
 div#list-controller {
     padding-left: 300px;
 }
+
+.listening-on {
+    background-color: #CCFFCC;
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/ce5584d0/console/stand-alone/plugin/js/qdrTopology.js
----------------------------------------------------------------------
diff --git a/console/stand-alone/plugin/js/qdrTopology.js b/console/stand-alone/plugin/js/qdrTopology.js
index 04952f7..a20228e 100644
--- a/console/stand-alone/plugin/js/qdrTopology.js
+++ b/console/stand-alone/plugin/js/qdrTopology.js
@@ -24,8 +24,8 @@ var QDR = (function(QDR) {
   QDR.module.controller('QDR.TopologyFormController', function($scope, QDRService) {
 
     $scope.attributes = []
-    var nameTemplate = '<div title="{{row.entity.description}}" class="ngCellText"><span>{{row.entity.attributeName}}</span></div>';
-    var valueTemplate = '<div title="{{row.entity.attributeValue}}" class="ngCellText"><span>{{row.entity.attributeValue}}</span></div>';
+    var nameTemplate = '<div title="{{row.entity.description}}" class="ngCellText {{row.entity.cls}}"><span>{{row.entity.attributeName}}</span></div>';
+    var valueTemplate = '<div title="{{row.entity.attributeValue}}" class="ngCellText
{{row.entity.cls}}"><span>{{row.entity.attributeValue}}</span></div>';
     $scope.topoGridOptions = {
       data: 'attributes',
       enableColumnResize: false,
@@ -45,8 +45,13 @@ var QDR = (function(QDR) {
       var attributes = args.attributes;
       var entityTypes = QDRService.schema.entityTypes[args.entity].attributes;
       attributes.forEach(function(attr) {
-        if (entityTypes[attr.attributeName] && entityTypes[attr.attributeName].description)
+        attr.cls = ''
+QDR.log.debug("attr.description " + attr.description)
+        if (attr.attributeName === 'Listening on')
+          attr.cls = 'listening-on'
+        if (entityTypes[attr.attributeName] && entityTypes[attr.attributeName].description)
{
           attr.description = entityTypes[attr.attributeName].description
+        }
       })
       $scope.attributes = attributes;
       $scope.form = args.entity;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message