noesya/osuny

View on GitHub
app/views/admin/communication/blocks/templates/embed/_show.html.erb

Summary

Maintainability
Test Coverage
<div class="<%= block_html_class(block) %>">
  <div class="container">
    <div class="block-content">
      <%= render 'admin/communication/blocks/partials/top', block: block %>

      <%= block_component_show block, :code, strip_javascript: strip_javascript %>

      <% unless block.template.transcription.blank? %>
        <div class="transcription">
          <details>
            <summary>
              <% if block.template.transcription_title.present? %>
                <%= block.template.transcription_title %>
              <% else %>
                <%= t 'accessibility.transcription' %>
              <% end %>
            </summary>
            <p><%= block_component_show block, :transcription %></p>
          </details>
        </div>
      <% end %>
    </div>
  </div>
</div>