- Warn - <%= warning[:component] %> - <%= warning[:message] %> -
- <% end %> + <% #application_items = [] %> + <% application_items = @applications.map do |application| %> + <% + summary = 'Application not found' - <%= render "govuk_publishing_components/components/heading", { - text: "Components used", - font_size: "m", - margin_bottom: 4, - heading_level: 3, - } %> + if application[:application_found] + summary = "Warnings: 0" + if application[:warning_count] > 0 + summary = "Warnings: #{application[:warning_count]}" + end + end + %> --
- <% application[:summary].each do |item| %>
-
- - <%= item[:name] %> - -
- - <% if item[:value].length > 0 %> - <%= item[:value] %> - <% else %> - None - <% end %> - -
+ Warn + <%= warning[:component] %> - <%= warning[:message] %> +
+ <% end %> - <% if application[:gem_style_references].any? %> - <%= render "govuk_publishing_components/components/heading", { - text: "Component references", - font_size: "m", - margin_bottom: 4, - heading_level: 3, - } %> + <%= render "govuk_publishing_components/components/heading", { + text: "Components used", + font_size: "m", + margin_bottom: 4, + heading_level: 3, + } %> -This shows instances of `gem-c-` classes found in the application. If a reference is found in a stylesheet or in code a warning is created, as this could be a style override or hard coded component markup.
--
- <% application[:gem_style_references].each do |ref| %>
-
- <%= ref %> +
- + <%= item[:name] %> + +
- + <% if item[:value].length > 0 %> + <%= item[:value] %> + <% else %> + None <% end %> - + +
- <%= ref %> <% end %> +
- <%= ref %> - <% end %> -
- <%= ref %> <% end %> - <% else %> -
-
+ <% application[:summary].each do |item| %>
+
This shows instances of `gem-c-` classes found in the application. If a reference is found in a stylesheet or in code a warning is created, as this could be a style override or hard coded component markup.
+-
+ <% application[:gem_style_references].each do |ref| %>
+
This shows JavaScript files that might contain jQuery, which we are trying to remove our dependency on.
--
- <% application[:jquery_references].each do |ref| %>
-
This shows JavaScript files that might contain jQuery, which we are trying to remove our dependency on.
+-
+ <% application[:jquery_references].each do |ref| %>
+
This application was not found. This could be because you do not have this repository checked out locally.
- <% end %> -