<% if !sections || sections.empty? %> <%= render 'empty' %> <% else %>
<% sections.each_with_index do |section, index| %>
<% if params[:category_id].blank? %> <%= section.category %> <% end %> <%= link_to section.name, section_preview_path(section) %>
<% if section.valid? %> Valid 👍 <% else %> Invalid 😞 <% end %>
<% unless section.valid? %>
<%= section.errors.full_messages %>
<% end %>

YAML Definition: <%= section_file_path(section) %>
Template: <%= section_template_path(section) %>

<% if screenshot_path = section_screenshot_path(section) %>
<% else %>
<% end %>
<% end %>
<% end %>