<% content_for :head do %>
  <% log_entry = @post.primary_file_for_view&.log_entry %>
  <% if log_entry && is_flash_content_type?(log_entry.content_type) %>
    <script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
    <style type="text/css" data-turbolinks-track>
      embed,
      ruffle-embed {
        width: 100%;
        border-radius: 0.5rem;
        overflow: hidden;
      }
    </style>
  <% end %>
<% end %>
<div class="mx-auto mt-4 flex w-full max-w-2xl flex-col gap-4 pb-4">
  <%= render_for_model(@post, "section_post_title", as: :post) %>
  <%= render_for_model(@post, "section_post_groups", as: :post) %>
  <%= render_for_model(@post, "section_primary_file", as: :post) %>
  <%= render_for_model(@post, "section_description", as: :post) %>
  <%= render_for_model(@post, "section_tags", as: :post) %>
  <%= render_for_model(@post, "section_sources", as: :post) %>
  <%= render_for_model(@post, "section_visualy_similar_posts", as: :post) %>
  <%= render_for_model(@post, "section_similar_posts", as: :post) %>
</div>
