Commit f6ef9a7fd43d4106e1d30344a76d6e8ab4a96311
1 parent
fcf765cf
Exists in
master
and in
29 other branches
Display products counter only for enabled enterprises
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/statistics/views/statistics_block.html.erb
@@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
9 | <% if block.is_visible?('enterprise_counter') && !block.environment.enabled?('disable_asset_enterprises') %> | 9 | <% if block.is_visible?('enterprise_counter') && !block.environment.enabled?('disable_asset_enterprises') %> |
10 | <li class="enterprises"><span class="amount"><%= block.enterprises%> </span><span class="label"><%= _('enterprises')%></span></li> | 10 | <li class="enterprises"><span class="amount"><%= block.enterprises%> </span><span class="label"><%= _('enterprises')%></span></li> |
11 | <% end %> | 11 | <% end %> |
12 | - <% if block.is_visible?('product_counter') && !block.environment.enabled?('disable_asset_products') %> | 12 | + <% if block.is_visible?('product_counter') && block.environment.enabled?('products_for_enterprises') %> |
13 | <li class="products"><span class="amount"><%= block.products%> </span><span class="label"><%= _('products')%></span></li> | 13 | <li class="products"><span class="amount"><%= block.products%> </span><span class="label"><%= _('products')%></span></li> |
14 | <% end %> | 14 | <% end %> |
15 | <% if block.is_visible?('community_counter') %> | 15 | <% if block.is_visible?('community_counter') %> |