Sha256: 2e69e83627eeb1a827d4d862e5a9bea185683ce1b2b80982a6e7bc916036f361
Contents?: true
Size: 1.99 KB
Versions: 2
Compression:
Stored size: 1.99 KB
Contents
<%= content_tag :div, class: classes, data: data_attributes do %> <%= render Avo::CoverPhotoComponent.new cover_photo: @cover_photo %> <%= render Avo::PanelHeaderComponent.new( name: @name, description: @description, display_breadcrumbs: @display_breadcrumbs, profile_photo: @profile_photo ) do |header| %> <% if name_slot.present? %> <% header.with_name_slot do %> <%= name_slot %> <% end %> <% end %> <% if tools.present? %> <% header.with_tools do %> <%= tools %> <% end %> <% end %> <% end %> <% if body? %> <div data-target="panel-body" class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:gap-4 w-full <% if sidebar? %> has-sidebar <% end %>"> <div class="relative flex-1 w-full <% if sidebar? %> sm:w-2/3 <% end %>"> <% # The body is wrapped inside another div in order to avoid long & tall panels next to sidebars when the sidebar taller. %> <div class="relative <%= white_panel_classes %> <%= @body_classes %>"> <%= body %> </div> </div> <% if sidebar? %> <div class="max-w-full sm:w-1/3 flex-shrink-0 h-full"> <%= sidebar %> </div> <% end %> <% if bare_sidebar? %> <div class="max-w-full sm:w-1/3 flex-shrink-0 h-full"> <%= bare_sidebar %> </div> <% end %> </div> <% end %> <% if bare_content? %> <%= content_tag :div, class: class_names("relative flex flex-1 flex-col", "has-sidebar": sidebar?), data: { target: :"panel-bare-content" } do %> <%= bare_content %> <% end %> <% end %> <% if footer_tools? %> <div data-target="panel-footer-tools" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
avo-3.15.1 | app/components/avo/panel_component.html.erb |
avo-3.15.0 | app/components/avo/panel_component.html.erb |