Sha256: 5b9fd37b40146dceecaf0dcb89b4a9300ca2881bf5cf4b6141956e1d9b8a459d

Contents?: true

Size: 1.34 KB

Versions: 7

Compression:

Stored size: 1.34 KB

Contents

<div class="application-sidebar flex h-full bg-white text-white w-56 z-50 border-r border-gray-300">
  <div class="flex flex-col w-full">
    <%= link_to root_path, class: 'logo-placeholder h-16 bg-white p-2 flex justify-center' do %>
      <%= render partial: "avo/partials/logo" %>
    <% end %>

    <div class="flex-1 flex flex-col justify-between">
      <div class="tools py-4">
        <%= render Avo::NavigationLinkComponent.new label: 'Get started', path: avo.root_path, active: :exclusive if Rails.env.development? && Avo.configuration.home_path.nil?  %>

        <%= render Avo::NavigationHeadingComponent.new label: t('avo.resources') %>

        <div class="w-full">
          <% Avo::App.resources_navigation(_current_user).each do |resource| %>
            <%= render Avo::NavigationLinkComponent.new label: resource.plural_name.humanize, path: resources_path(resource.model_class) %>
          <% end %>

          <% sidebar_partials = Avo::App.get_sidebar_partials %>
          <% if sidebar_partials.present? %>
            <%= render Avo::NavigationHeadingComponent.new label: t('avo.tools') %>

            <% sidebar_partials.each do |partial| %>
              <%= render partial: "/avo/sidebar/items/#{partial}" %>
            <% end %>
          <% end %>
        </div>

      </div>

      <%= render_license_warnings %>
    </div>
  </div>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
avo-1.16.2 app/views/avo/sidebar/_sidebar.html.erb
avo-1.16.1 app/views/avo/sidebar/_sidebar.html.erb
avo-1.16.0 app/views/avo/sidebar/_sidebar.html.erb
avo-1.15.0 app/views/avo/sidebar/_sidebar.html.erb
avo-1.15.0.pre.1 app/views/avo/sidebar/_sidebar.html.erb
avo-1.14.0 app/views/avo/sidebar/_sidebar.html.erb
avo-1.13.3 app/views/avo/sidebar/_sidebar.html.erb