Return-Path: X-Original-To: apmail-brooklyn-commits-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5CB7D184D9 for ; Mon, 1 Feb 2016 17:51:49 +0000 (UTC) Received: (qmail 80646 invoked by uid 500); 1 Feb 2016 17:51:46 -0000 Delivered-To: apmail-brooklyn-commits-archive@brooklyn.apache.org Received: (qmail 80578 invoked by uid 500); 1 Feb 2016 17:51:46 -0000 Mailing-List: contact commits-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list commits@brooklyn.apache.org Received: (qmail 79661 invoked by uid 99); 1 Feb 2016 17:51:45 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2016 17:51:45 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A6694E383A; Mon, 1 Feb 2016 17:51:45 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: heneveld@apache.org To: commits@brooklyn.apache.org Date: Mon, 01 Feb 2016 17:52:04 -0000 Message-Id: <56d2696baf774c3db2f1beade89424e4@git.apache.org> In-Reply-To: <67020fe7630d456db986dadf3c5a7c21@git.apache.org> References: <67020fe7630d456db986dadf3c5a7c21@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [20/50] [abbrv] brooklyn-ui git commit: show entity icon (from iconUrl) in the app-explorer tree view show entity icon (from iconUrl) in the app-explorer tree view Project: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/commit/3f0d54a6 Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/tree/3f0d54a6 Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/diff/3f0d54a6 Branch: refs/heads/0.6.0 Commit: 3f0d54a6bc91f45bf1448c06cf5a0006d8b3f290 Parents: 2ef411f Author: Alex Heneveld Authored: Mon Sep 16 21:42:04 2013 +0100 Committer: Alex Heneveld Committed: Wed Sep 18 09:30:06 2013 +0100 ---------------------------------------------------------------------- .../src/main/webapp/assets/js/model/app-tree.js | 1 + .../webapp/assets/js/view/application-tree.js | 3 +++ .../main/webapp/assets/tpl/apps/tree-item.html | 18 ++++++++++++++---- 3 files changed, 18 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/3f0d54a6/usage/jsgui/src/main/webapp/assets/js/model/app-tree.js ---------------------------------------------------------------------- diff --git a/usage/jsgui/src/main/webapp/assets/js/model/app-tree.js b/usage/jsgui/src/main/webapp/assets/js/model/app-tree.js index 2bd0226..91bc63d 100644 --- a/usage/jsgui/src/main/webapp/assets/js/model/app-tree.js +++ b/usage/jsgui/src/main/webapp/assets/js/model/app-tree.js @@ -9,6 +9,7 @@ define([ return { id:"", name:"", + iconUrl:"", children:[] } }, http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/3f0d54a6/usage/jsgui/src/main/webapp/assets/js/view/application-tree.js ---------------------------------------------------------------------- diff --git a/usage/jsgui/src/main/webapp/assets/js/view/application-tree.js b/usage/jsgui/src/main/webapp/assets/js/view/application-tree.js index 61ea360..efbad8b 100644 --- a/usage/jsgui/src/main/webapp/assets/js/view/application-tree.js +++ b/usage/jsgui/src/main/webapp/assets/js/view/application-tree.js @@ -80,6 +80,7 @@ define([ hasChildren: application.hasChildren(), parentApp:application.get("id"), displayName:application.get("name"), + iconUrl:application.get("iconUrl"), depth: 0 })), treeFromEntity = function (entity, depth) { @@ -92,6 +93,7 @@ define([ hasChildren: true, parentApp:application.get("id"), displayName:entity.getDisplayName(), + iconUrl:entity.get("iconUrl"), depth: depth })) var $parentTpl = $entityTpl.find("#children") @@ -105,6 +107,7 @@ define([ hasChildren: false, parentApp:application.get("id"), displayName:entity.getDisplayName(), + iconUrl:entity.get("iconUrl"), depth: depth })) } http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/3f0d54a6/usage/jsgui/src/main/webapp/assets/tpl/apps/tree-item.html ---------------------------------------------------------------------- diff --git a/usage/jsgui/src/main/webapp/assets/tpl/apps/tree-item.html b/usage/jsgui/src/main/webapp/assets/tpl/apps/tree-item.html index f29c96b..1a2a380 100644 --- a/usage/jsgui/src/main/webapp/assets/tpl/apps/tree-item.html +++ b/usage/jsgui/src/main/webapp/assets/tpl/apps/tree-item.html @@ -2,10 +2,20 @@