app/views/shared/index.html.erb in adminpanel-1.2.11 vs app/views/shared/index.html.erb in adminpanel-1.2.12

- old
+ new

@@ -23,11 +23,11 @@ <div class="widget-body"> <div class="dataTables_wrapper form-inline"> <table id="information-table" class="table table-striped table-bordered dataTable"> <thead><!-- model attributes --> <tr> - <% @model.display_attributes.each do |fields| %> + <% @model.display_attributes('index').each do |fields| %> <% fields.each do |attribute, properties| %> <% if properties["type"] != "adminpanel_file_field" && properties["type"] != "has_many" %> <th><%= properties["label"] %></th> <% end %> <% end %> @@ -36,10 +36,10 @@ </tr> </thead><!-- Ends model attributes --> <tbody> <% collection.each do |member| %> <tr> - <% @model.display_attributes.each do |fields| %> + <% @model.display_attributes('index').each do |fields| %> <% fields.each do |attribute, properties| %> <% if properties["type"] == "wysiwyg_field" %> <td><%= member.send(attribute).html_safe -%></td> <% elsif properties["type"] == "belongs_to" %> <td>