From f6ef9a7fd43d4106e1d30344a76d6e8ab4a96311 Mon Sep 17 00:00:00 2001 From: Eduardo Passos Date: Mon, 9 Feb 2015 21:21:36 -0300 Subject: [PATCH] Display products counter only for enabled enterprises --- plugins/statistics/views/statistics_block.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/statistics/views/statistics_block.html.erb b/plugins/statistics/views/statistics_block.html.erb index f5e7054..6d227ca 100644 --- a/plugins/statistics/views/statistics_block.html.erb +++ b/plugins/statistics/views/statistics_block.html.erb @@ -9,7 +9,7 @@ <% if block.is_visible?('enterprise_counter') && !block.environment.enabled?('disable_asset_enterprises') %>
  • <%= block.enterprises%> <%= _('enterprises')%>
  • <% end %> - <% if block.is_visible?('product_counter') && !block.environment.enabled?('disable_asset_products') %> + <% if block.is_visible?('product_counter') && block.environment.enabled?('products_for_enterprises') %>
  • <%= block.products%> <%= _('products')%>
  • <% end %> <% if block.is_visible?('community_counter') %> -- libgit2 0.21.2