Sha256: ae65fc93d0347510036b04e976c55526d618002533c27263ff4d933d926a9ab5

Contents?: true

Size: 1.73 KB

Versions: 33

Compression:

Stored size: 1.73 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-wrap flex-col sm:flex-row xl:justify-end sm:items-end gap-2 mt-4 xl:mt-0" data-target="panel-tools">
          <%= 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

33 entries across 33 versions & 1 rubygems

Version Path
avo-2.16.1.pre.1.nativefields app/components/avo/panel_component.html.erb
avo-2.16.0 app/components/avo/panel_component.html.erb
avo-2.15.3 app/components/avo/panel_component.html.erb
avo-2.15.3.pre.1.data.attrs.to.sidebar.items app/components/avo/panel_component.html.erb
avo-2.15.2 app/components/avo/panel_component.html.erb
avo-2.15.2.pre.1 app/components/avo/panel_component.html.erb
avo-2.15.1 app/components/avo/panel_component.html.erb
avo-2.15.0 app/components/avo/panel_component.html.erb
avo-2.14.3.pre.7.polytranslations1 app/components/avo/panel_component.html.erb
avo-2.14.3.pre.6.nosprockets app/components/avo/panel_component.html.erb
avo-2.14.3.pre.5.nosprockets app/components/avo/panel_component.html.erb
avo-2.14.3.pre.4.tosqlfix app/components/avo/panel_component.html.erb
avo-2.14.3.pre.3.jsbundling app/components/avo/panel_component.html.erb
avo-2.14.3.pre.2.tailwindcss app/components/avo/panel_component.html.erb
avo-2.14.3.pre.1.branding app/components/avo/panel_component.html.erb
avo-2.14.2 app/components/avo/panel_component.html.erb
avo-2.14.2.pre.1 app/components/avo/panel_component.html.erb
avo-2.14.1 app/components/avo/panel_component.html.erb
avo-2.14.1.pre.1 app/components/avo/panel_component.html.erb
avo-2.14.0 app/components/avo/panel_component.html.erb