<%# Usage: render partial: 'content/display/quick_reference', locals: { content: @content } %>

<%= content.class.icon %> <%= link_to content.name, content %> <% if content.respond_to?(:universe) && content.universe %> <%= link_to content.universe do %> <%= Universe.icon %> <% end %> <% end %>

<%= content.description %>
<% all_categories = content.class.attribute_categories(current_user) %> <% found_attributes = 0 %> <% attributes_to_find = 5 %> <% all_categories.each do |category| %> <% category.attribute_fields.each do |attribute_field| %> <% break if found_attributes >= attributes_to_find %> <% next if attribute_field.name.end_with? '_id' %> <% next if attribute_field.name == 'privacy' %> <% next if ['name', 'description'].include? attribute_field.name %> <% next unless content.respond_to? attribute_field.name %> <% next unless content.send(attribute_field.name).present? %> <% next if content.send(attribute_field.name).is_a?(ActiveRecord::Associations::CollectionProxy) %> <% found_attributes += 1 %> <% end %> <% end %> <% if found_attributes < attributes_to_find %> <% end %>
<%= attribute_field.label %>
<%= content.send attribute_field.name %>
More information will automatically appear here as you add it to <%= content.name %>.