You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2013/12/27 16:55:01 UTC
git commit: AMBARI-4188 Non-admin user can manage config groups.
(atkach)
Updated Branches:
refs/heads/trunk 2c65034e8 -> 8bc7ee984
AMBARI-4188 Non-admin user can manage config groups. (atkach)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/8bc7ee98
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/8bc7ee98
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/8bc7ee98
Branch: refs/heads/trunk
Commit: 8bc7ee984eda04801b0e9835ad70906618c86fa7
Parents: 2c65034
Author: atkach <at...@hortonworks.com>
Authored: Fri Dec 27 17:54:47 2013 +0200
Committer: atkach <at...@hortonworks.com>
Committed: Fri Dec 27 17:55:00 2013 +0200
----------------------------------------------------------------------
.../app/templates/common/configs/service_config.hbs | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/8bc7ee98/ambari-web/app/templates/common/configs/service_config.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/common/configs/service_config.hbs b/ambari-web/app/templates/common/configs/service_config.hbs
index 98973aa..bafee85 100644
--- a/ambari-web/app/templates/common/configs/service_config.hbs
+++ b/ambari-web/app/templates/common/configs/service_config.hbs
@@ -64,10 +64,12 @@
{{/each}}
</ul>
</span>
- {{#if controller.isHostsConfigsPage}}
- <a href="#" {{action "switchHostGroup" target="controller"}}>{{t common.change}}</a>
- {{else}}
- <a href="#" class="link" {{action "manageConfigurationGroup" target="controller"}}>{{t services.service.actions.manage_configuration_groups.short}}</a>
+ {{#if App.isAdmin}}
+ {{#if controller.isHostsConfigsPage}}
+ <a href="#" {{action "switchHostGroup" target="controller"}}>{{t common.change}}</a>
+ {{else}}
+ <a href="#" class="link" {{action "manageConfigurationGroup" target="controller"}}>{{t services.service.actions.manage_configuration_groups.short}}</a>
+ {{/if}}
{{/if}}
<div class="pull-right">
{{view App.FilterComboboxView filterBinding="view.filter" columnsBinding="view.columns" }}