<% category.subcategories.each do |subcategory| %>
<% if (subcategory_results_count = count_calculator(current_scope, subcategory.id)) > 0 %>
<%= link_to results_path(filter: { category_id: subcategory, scope_id: current_scope }), class: "medium-4 columns end card__link card__link--block" do %>
<%= translated_attribute(subcategory.name) %>
<% if progress_calculator(current_scope, subcategory.id).present? %>
<%= display_percentage progress_calculator(current_scope, subcategory.id) %>
<% end %>
<%= display_count subcategory_results_count %>
<% end %>
<% end %>
<% end %>