Repository: ambari Updated Branches: refs/heads/branch-1.7.0 02f6df323 -> c7bd58dde
AMBARI-7904. Flume agent button is hidden. (onechiporenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/c7bd58dd Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c7bd58dd Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c7bd58dd Branch: refs/heads/branch-1.7.0 Commit: c7bd58dde979005ecf2a5d70fac49c22b2787445 Parents: 02f6df3 Author: Oleg Nechiporenko <onechipore...@apache.org> Authored: Wed Oct 22 18:07:08 2014 +0300 Committer: Oleg Nechiporenko <onechipore...@apache.org> Committed: Wed Oct 22 18:34:47 2014 +0300 ---------------------------------------------------------------------- ambari-web/app/styles/application.less | 6 ++- .../templates/main/service/services/flume.hbs | 46 +++++++++++--------- 2 files changed, 30 insertions(+), 22 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/c7bd58dd/ambari-web/app/styles/application.less ---------------------------------------------------------------------- diff --git a/ambari-web/app/styles/application.less b/ambari-web/app/styles/application.less index 4847eaa..5c64bb2 100644 --- a/ambari-web/app/styles/application.less +++ b/ambari-web/app/styles/application.less @@ -6982,9 +6982,13 @@ i.icon-asterisks { .wrapp-flume-status{ text-align: left; } - .flume-agents-actions { + .btn-wrapper { margin: 0 5px 5px 0; float: right; + width:60px; + } + .flume-agents-actions { + position: absolute; a { text-decoration: none; } http://git-wip-us.apache.org/repos/asf/ambari/blob/c7bd58dd/ambari-web/app/templates/main/service/services/flume.hbs ---------------------------------------------------------------------- diff --git a/ambari-web/app/templates/main/service/services/flume.hbs b/ambari-web/app/templates/main/service/services/flume.hbs index ecbbf46..5bdf242 100644 --- a/ambari-web/app/templates/main/service/services/flume.hbs +++ b/ambari-web/app/templates/main/service/services/flume.hbs @@ -42,26 +42,28 @@ </td> <td class="agent-status"> <div class="wrapp-flume-status"> - <span {{bindAttr class="host.firtstAgent.healthClass"}}></span> {{host.firtstAgent.name}} - <div class="btn-group display-inline-block flume-agents-actions"> - <a {{bindAttr class=":btn :dropdown-toggle"}} data-toggle="dropdown" href="javascript:void(null)">{{host.firtstAgent.displayStatus}} - <span class="caret"></span> - </a> - <ul class="pull-left dropdown-menu"> - <li {{bindAttr class="host.firtstAgent.isStartAgentDisabled:disabled"}}> - <a href="javascript:void(null)" - {{bindAttr class="host.firtstAgent.isStartAgentDisabled:disabled"}} - {{action startFlumeAgent host.firtstAgent target="controller"}}> - {{t services.service.summary.flume.startAgent}}</a> - </li> - <li {{bindAttr class="host.firtstAgent.isStopAgentDisabled:disabled"}}> - <a href="javascript:void(null)" - {{bindAttr class="host.firtstAgent.isStopAgentDisabled:disabled"}} - {{action stopFlumeAgent host.firtstAgent target="controller"}}> - {{t services.service.summary.flume.stopAgent}}</a> - </li> - </ul> - </div> + <div class="pull-left"><span {{bindAttr class="host.firtstAgent.healthClass"}}></span> {{host.firtstAgent.name}}</div> + <div class="btn-wrapper"> + <div class="btn-group display-inline-block flume-agents-actions"> + <a {{bindAttr class=":btn :dropdown-toggle"}} data-toggle="dropdown" href="javascript:void(null)">{{host.firtstAgent.displayStatus}} + <span class="caret"></span> + </a> + <ul class="pull-left dropdown-menu"> + <li {{bindAttr class="host.firtstAgent.isStartAgentDisabled:disabled"}}> + <a href="javascript:void(null)" + {{bindAttr class="host.firtstAgent.isStartAgentDisabled:disabled"}} + {{action startFlumeAgent host.firtstAgent target="controller"}}> + {{t services.service.summary.flume.startAgent}}</a> + </li> + <li {{bindAttr class="host.firtstAgent.isStopAgentDisabled:disabled"}}> + <a href="javascript:void(null)" + {{bindAttr class="host.firtstAgent.isStopAgentDisabled:disabled"}} + {{action stopFlumeAgent host.firtstAgent target="controller"}}> + {{t services.service.summary.flume.stopAgent}}</a> + </li> + </ul> + </div> + </div> </div> </td> <td> @@ -78,7 +80,8 @@ {{#view view.agentView contentBinding="host"}} <td class="agent-status"> <div class="wrapp-flume-status"> - <span {{bindAttr class="agent.healthClass"}}></span> {{agent.name}} + <div class="pull-left"><span {{bindAttr class="agent.healthClass"}}></span> {{agent.name}}</div> + <div class="btn-wrapper"> <div class="btn-group display-inline-block flume-agents-actions"> <a {{bindAttr class=":btn :dropdown-toggle"}} data-toggle="dropdown" href="javascript:void(null)">{{agent.displayStatus}} <span class="caret"></span> @@ -97,6 +100,7 @@ {{t services.service.summary.flume.stopAgent}}</a> </li> </ul> + </div> </div> </div> </td>