From b9db27345285ab41abe14e1e42176e8fc4c0582e Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Thu, 21 Jul 2016 11:59:50 +0200 Subject: [PATCH] =?UTF-8?q?D=C3=A9sactivation=20de=20toute=20les=20configu?= =?UTF-8?q?rations=20li=C3=A9es=20a=20oneflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Si 'activer_oneflow' est a "non" on cache tous les éléments de la vue admin sunstone en lien avec les "Services" ref #16796 @1h --- tmpl/admin.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tmpl/admin.yaml b/tmpl/admin.yaml index a5bf9ae..e9ffa6f 100644 --- a/tmpl/admin.yaml +++ b/tmpl/admin.yaml @@ -1,14 +1,19 @@ +%set oneflow = %%getVar('activer_oneflow','non') == 'oui' small_logo: images/opennebula-5.0.png provision_logo: images/opennebula-5.0.png enabled_tabs: - dashboard-tab - instances-top-tab - vms-tab +%if %%oneflow - oneflow-services-tab +%end if - vrouters-tab - templates-top-tab - templates-tab +%if %%oneflow - oneflow-templates-tab +%end if - vrouter-templates-tab - storage-top-tab - datastores-tab @@ -341,6 +346,7 @@ tabs: VM.updateconf: true VM.edit_labels: true VM.menu_labels: true +%if %%oneflow oneflow-services-tab: panel_tabs: service_info_tab: true @@ -397,6 +403,7 @@ tabs: Service.delete: true Service.edit_labels: true Service.menu_labels: true +%end if vrouters-tab: panel_tabs: virtual_router_info_tab: true