cirandas.net

ref: master

plugins/statistics/views/blocks/statistics.html.erb


<%=block.title%>

    <% if block.is_visible?('user_counter') %>
  • <%= number_to_human(block.users, significant_digits: 6) %> <%= _('users')%>
  • <% end %> <% if block.is_visible?('enterprise_counter') && !block.environment.enabled?('disable_asset_enterprises') %>
  • <%= number_to_human(block.enterprises, significant_digits: 6) %> <%= _('enterprises')%>
  • <% end %> <% if block.is_visible?('product_counter') && block.environment.enabled?('products_for_enterprises') %>
  • <%= number_to_human(block.products, significant_digits: 6) %> <%= _('products')%>
  • <% end %> <% if block.is_visible?('community_counter') %>
  • <%= number_to_human(block.communities, significant_digits: 6) %> <%= _('communities')%>
  • <% end %> <% if block.is_visible?('category_counter') %>
  • <%= number_to_human(block.categories, significant_digits: 6) %> <%= _('categories')%>
  • <% end %> <% if block.is_visible?('tag_counter') %>
  • <%= number_to_human(block.tags, significant_digits: 6) %> <%= c_('tags')%>
  • <% end %> <% if block.is_visible?('comment_counter') %>
  • <%= number_to_human(block.comments, significant_digits: 6) %> <%= c_('comments')%>
  • <% end %> <% if block.is_visible?('hit_counter') %>
  • <%= number_to_human(block.hits, significant_digits: 6) %> <%= _('hits')%>
  • <% end %> <% if block.owner.kind_of?(Environment) then %> <% block.templates.each do |item| %> <% if block.is_template_counter_active? item.id %>
  • <%= number_to_human(block.template_counter_count(item.id), significant_digits: 6) %> <%= item.name%>
  • <% end %> <% end %> <% end %>