You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by on...@apache.org on 2014/02/25 15:28:18 UTC
git commit: AMBARI-4818. Do not show "restart" op on non-admin user.
(Denys Buzhor via onechiporenko)
Repository: ambari
Updated Branches:
refs/heads/trunk 4737319e0 -> c04360ddc
AMBARI-4818. Do not show "restart" op on non-admin user. (Denys Buzhor via onechiporenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/c04360dd
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c04360dd
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c04360dd
Branch: refs/heads/trunk
Commit: c04360ddc39b2a2f8094ec71be6380d62a3b327d
Parents: 4737319
Author: Oleg Nechiporenko <on...@apache.org>
Authored: Tue Feb 25 16:27:41 2014 +0200
Committer: Oleg Nechiporenko <on...@apache.org>
Committed: Tue Feb 25 16:28:13 2014 +0200
----------------------------------------------------------------------
ambari-web/app/templates/main/host/summary.hbs | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/c04360dd/ambari-web/app/templates/main/host/summary.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/host/summary.hbs b/ambari-web/app/templates/main/host/summary.hbs
index 2b04ea9..e066d0d 100644
--- a/ambari-web/app/templates/main/host/summary.hbs
+++ b/ambari-web/app/templates/main/host/summary.hbs
@@ -47,13 +47,15 @@
<div class="host-components">
{{#if view.sortedComponents.length}}
- {{#if view.content.componentsWithStaleConfigsCount}}
+ {{#if App.isAdmin}}
+ {{#if view.content.componentsWithStaleConfigsCount}}
<div class="alert alert-warning clearfix">
<i class="icon-refresh"></i> {{view.needToRestartMessage}}
- <button {{bindAttr class=":btn :restart-components :pull-right :btn-warning"}} {{action restartAllStaleConfigComponents target="controller"}}>
- {{t hosts.host.details.needToRestart.button}}
- </button>
+ <button {{bindAttr class=":btn :restart-components :pull-right :btn-warning"}} {{action restartAllStaleConfigComponents target="controller"}}>
+ {{t hosts.host.details.needToRestart.button}}
+ </button>
</div>
+ {{/if}}
{{/if}}
{{#each component in view.sortedComponents}}