<% @content_type.attribute_categories(User.new).each do |category| %>
<% next if ['Changelog', 'Gallery', 'Notes', 'Settings', 'Contributors'].include?(category.label) %>
<%= category.label %>
<% category.attribute_fields.each do |attribute| %>
<% column = attribute.label.underscore.gsub(' ', '_').to_sym %>
<% next unless @content_type.columns.map(&:name).include? column.to_s %>
<%= attribute.label %>
<%=
begin
bar_chart @content_type.where.not("#{column}": "").group(column).order('count_all desc').limit(5).count()
rescue
end
%>
<% end %>