app/views/admin/communication/blocks/_static.html.erb
<%
template_path = "admin/communication/blocks/templates/#{block.template_kind}/static"
should_render_data = block.data && block.data.present?
%>
- kind: block
template: <%= block.template_kind %>
title: >-
<%= prepare_text_for_static block.title %>
slug: >-
<%= block.slug %>
ranks:
self: <%= block.heading_rank_self %>
<% if block.heading_children? %>
children: <%= block.heading_rank_children %>
<% end %>
<% if block.html_class.present? %>
html_class: "<%= block.html_class_prepared %>"
<% end %>
data:
<%= render template_path,
block: block,
about: block.about if should_render_data %>