This is an automated email from the ASF dual-hosted git repository. ababiichuk pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push: new 14c55d3 AMBARI-23716 Kafka Quick Links Shows all Views links. (ababiichuk) 14c55d3 is described below commit 14c55d316969e4777730b9bfcfa8f9b8e17032d7 Author: ababiichuk <ababiic...@hortonworks.com> AuthorDate: Fri Apr 27 13:57:26 2018 +0300 AMBARI-23716 Kafka Quick Links Shows all Views links. (ababiichuk) --- .../app/templates/main/service/info/summary.hbs | 21 +++++++++++---------- ambari-web/app/views/main/service/info/summary.js | 12 +++++++----- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/ambari-web/app/templates/main/service/info/summary.hbs b/ambari-web/app/templates/main/service/info/summary.hbs index abf458f..39c70f5 100644 --- a/ambari-web/app/templates/main/service/info/summary.hbs +++ b/ambari-web/app/templates/main/service/info/summary.hbs @@ -128,20 +128,21 @@ {{/if}} </div> {{/view}} - <div class="panel-heading"> + {{! TODO implement display of views related to the current service}} + <!--div class="panel-heading"> <div class="row col-md-8 col-lg-12"> - <h4 class="panel-title">{{t common.views}}</h4> + <h4 class="panel-title">{{!t common.views}}</h4> </div> </div> <div class="panel-body"> - {{#if view.views.length}} - {{#each item in view.views}} - <a href="#" {{action "setView" item target="App.router.mainViewsController"}}>{{item.label}}</a> - {{/each}} - {{else}} - <span>{{t menu.item.views.noViews}}</span> - {{/if}} - </div> + {{!#if view.views.length}} + {{!#each item in view.views}} + <a href="#" {{!action "setView" item target="App.router.mainViewsController"}}>{{!item.label}}</a> + {{!/each}} + {{!else}} + <span>{{!t menu.item.views.noViews}}</span> + {{!/if}} + </div--> </div> </div> </div> diff --git a/ambari-web/app/views/main/service/info/summary.js b/ambari-web/app/views/main/service/info/summary.js index dd8f9dd..35f0486 100644 --- a/ambari-web/app/views/main/service/info/summary.js +++ b/ambari-web/app/views/main/service/info/summary.js @@ -63,12 +63,14 @@ App.MainServiceInfoSummaryView = Em.View.extend({ */ serviceSummaryView: null, - /** - * @type {App.ViewInstance} - */ - views: function () { + + // TODO implement filtering of views related to current service + ///** + // * @type {App.ViewInstance} + // */ + /*views: function () { return App.router.get('loggedIn') ? App.router.get('mainViewsController.visibleAmbariViews') : []; - }.property('App.router.mainViewsController.visibleAmbariViews.[]', 'App.router.loggedIn'), + }.property('App.router.mainViewsController.visibleAmbariViews.[]', 'App.router.loggedIn'),*/ /** * @property {Object} serviceCustomViewsMap - custom views to embed -- To stop receiving notification emails like this one, please contact ababiic...@apache.org.