From f3bfd604c9f87bfde66851031689c695ec06fe67 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Tue, 11 Sep 2018 03:28:44 -0500 Subject: [PATCH] remove debug --- app/models/concerns/has_attributes.rb | 1 + app/views/content/display/_sidelinks.html.erb | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/has_attributes.rb b/app/models/concerns/has_attributes.rb index 389a1c03..dc5ecf66 100644 --- a/app/models/concerns/has_attributes.rb +++ b/app/models/concerns/has_attributes.rb @@ -9,6 +9,7 @@ module HasAttributes def self.attribute_categories(user, show_hidden: false) return [] if ['attribute_category', 'attribute_field'].include?(content_name) + # This doesn't work the way I think it does #return @cached_attribute_categories_for_this_content if @cached_attribute_categories_for_this_content # Always include the flatfile categories (but create AR versions if they don't exist) diff --git a/app/views/content/display/_sidelinks.html.erb b/app/views/content/display/_sidelinks.html.erb index b6dd79a4..7ff7a4fa 100644 --- a/app/views/content/display/_sidelinks.html.erb +++ b/app/views/content/display/_sidelinks.html.erb @@ -54,7 +54,6 @@ <%# for debugging: fields.map { |field| field.attribute_values.where(entity_id: content.id).map { |av| av.value } }.uniq %>
  • - <%= category.id %> _panel" class="<%= 'red-text' if category.label == 'Overview' %>"> <%= category.icon %> <%= category.label.capitalize.presence || '(blank)' %>