From 747cb827e2935a5bdd72add380e807ee39b77d06 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 13 Apr 2009 11:45:12 -0300 Subject: [PATCH] ActionItem1003: only display enterprise stuff when enabled --- app/views/profile_editor/index.rhtml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/views/profile_editor/index.rhtml b/app/views/profile_editor/index.rhtml index 2d3ca14..e118074 100644 --- a/app/views/profile_editor/index.rhtml +++ b/app/views/profile_editor/index.rhtml @@ -41,9 +41,14 @@ <%= file_manager_button(_('Manage Products and Services'), 'icons-app/products.png', :controller => 'manage_products') if profile.enterprise? && !environment.enabled?('disable_products_for_enterprises') %> - <%= file_manager_button(__('Enterprise Validation'), 'icons-app/validation.png', :controller => 'enterprise_validation') if profile.is_validation_entity? %> - - <%= file_manager_button(__('Favorite Enterprises'), 'icons-app/favorites.png', :controller => 'favorite_enterprises') if profile.person? %> + <% if !environment.enabled?('disable_asset_enterprises') %> + <% if profile.is_validation_entity? %> + <%= file_manager_button(__('Enterprise Validation'), 'icons-app/validation.png', :controller => 'enterprise_validation') %> + <% end %> + <% if profile.person? %> + <%= file_manager_button(__('Favorite Enterprises'), 'icons-app/favorites.png', :controller => 'favorite_enterprises') %> + <% end %> + <% end %> <% if profile.enterprise? %> <% if profile.enabled? %> -- libgit2 0.21.2