Sha256: 06c60be52f072a17fc9807f5a7f966c50c77ca77b9071e5b90597c13324c0460

Contents?: true

Size: 1.72 KB

Versions: 10

Compression:

Stored size: 1.72 KB

Contents

<%= content_tag :div, data: data_attributes, class: classes do %>
  <% if render_header? %>
    <div class="flex-1 flex flex-col xl:flex-row justify-between mb-4">
      <div class="overflow-hidden flex flex-col">
        <% if display_breadcrumbs? %>
          <div class="breadcrumbs truncate mb-2">
            <%= helpers.render_breadcrumbs(separator: helpers.svg('chevron-right', class: 'inline-block h-3 stroke-current relative top-[-1px] ml-1' )) if Avo.configuration.display_breadcrumbs %>
          </div>
        <% end %>
        <div class="text-2xl tracking-normal font-semibold text-gray-800 truncate items-center flex flex-1" data-target="title">
          <span><%= @name %></span>
        </div>
        <% if description.present? %>
          <div class="text-sm tracking-normal font-medium text-gray-600" data-target="description">
            <%== description %>
          </div>
        <% end %>
      </div>
      <% if tools.present? %>
        <div class="flex-1 w-full flex flex-col sm:flex-row xl:justify-end sm:items-end space-y-2 sm:space-y-0 sm:space-x-2 mt-4 xl:mt-0">
          <%= tools %>
        </div>
      <% end %>
    </div>
  <% end %>
  <% if body? %>
    <div class="relative <%= white_panel_classes %> <%= @body_classes %>">
      <%= body %>
    </div>
  <% end %>
  <% if bare_content? %>
    <div class="relative">
      <%= bare_content %>
    </div>
  <% end %>
  <% if footer_tools? %>
    <div class="flex-1 w-full flex flex-col sm:flex-row xl:justify-end sm:items-end space-y-2 sm:space-y-0 sm:space-x-2 mt-4 xl:mt-0">
      <%= footer_tools %>
    </div>
  <% end %>
  <% if footer? %>
    <div class="flex justify-end w-full">
      <div>
        <%= footer %>
      </div>
    </div>
  <% end %>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
avo-2.12.1.pre.1 app/components/avo/panel_component.html.erb
avo-2.12.0 app/components/avo/panel_component.html.erb
avo-2.11.3.pre.3 app/components/avo/panel_component.html.erb
avo-2.11.3.pre.2 app/components/avo/panel_component.html.erb
avo-2.11.2.pre.3 app/components/avo/panel_component.html.erb
avo-2.11.2.pre.2 app/components/avo/panel_component.html.erb
avo-2.11.2.pre.1 app/components/avo/panel_component.html.erb
avo-2.11.1.pre.3 app/components/avo/panel_component.html.erb
avo-2.11.1 app/components/avo/panel_component.html.erb
avo-2.11.1.pre.2 app/components/avo/panel_component.html.erb