% total_components = components.length components_with_stylesheet = 0 components_with_print_stylesheet = 0 components_with_javascript = 0 components_with_test = 0 components_with_javascript_test = 0 components_with_helper = 0 components.each do |component| components_with_stylesheet += 1 if component[:stylesheet] components_with_print_stylesheet += 1 if component[:print_stylesheet] components_with_javascript += 1 if component[:javascript] components_with_test += 1 if component[:tests] components_with_javascript_test += 1 if component[:js_tests] components_with_helper += 1 if component[:helper] end %>
Component (<%= total_components %>) | CSS (<%= components_with_stylesheet %>) | Print CSS (<%= components_with_print_stylesheet %>) | JS (<%= components_with_javascript %>) | Test (<%= components_with_test %>) | JS test (<%= components_with_javascript_test %>) | Helper (<%= components_with_helper %>) |
---|---|---|---|---|---|---|
<%= component[:name] %> | <% if component[:stylesheet] %> Yes <% end %> | <% if component[:print_stylesheet] %> Yes <% end %> | <% if component[:javascript] %> Yes <% end %> | <% if component[:tests] %> Yes <% end %> | <% if component[:js_tests] %> Yes <% end %> | <% if component[:helper] %> Yes <% end %> |