app/views/cm_admin/main/show.html.slim in cm-admin-1.1.9 vs app/views/cm_admin/main/show.html.slim in cm-admin-1.2.0

- old
+ new

@@ -1,15 +1,15 @@ -.show-page.cm-page-container - .show-page__header.sticky-container.page-top-bar +.show-page + .show-page__header.page-top-bar == render 'cm_admin/main/top_navbar' == render 'cm_admin/main/tabs' - .show-page__inner.scrollable + .show-page__inner - if @action.partial == render @action.partial - else - - @model.available_fields[:show].each do |section| - - if section.display_if.call(@ar_object) - .info-section - p.section-heading = section.section_name - .paper - - section.section_fields.each do |field| - = show_field(@ar_object, field) + - @model.available_fields[:show].each do |entity| + .row + - if entity.class == CmAdmin::Models::Row + - entity.sections.each do |section| + = render partial: 'cm_admin/main/show_section', locals: { section: section } + - elsif entity.class == CmAdmin::Models::Section + = render partial: 'cm_admin/main/show_section', locals: { section: entity } \ No newline at end of file