Sha256: 55d6a9fbb429c8ffef605b7b348b0e2c0f62bc45c2ba6211fa86c7b690adf33d

Contents?: true

Size: 1.34 KB

Versions: 28

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.name.pluralize.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

28 entries across 28 versions & 1 rubygems

Version Path
avo-1.13.2 app/views/avo/sidebar/_sidebar.html.erb
avo-1.13.1 app/views/avo/sidebar/_sidebar.html.erb
avo-1.13.0 app/views/avo/sidebar/_sidebar.html.erb
avo-1.12.4 app/views/avo/sidebar/_sidebar.html.erb
avo-1.12.3 app/views/avo/sidebar/_sidebar.html.erb
avo-1.12.2 app/views/avo/sidebar/_sidebar.html.erb
avo-1.12.1 app/views/avo/sidebar/_sidebar.html.erb
avo-1.12.0 app/views/avo/sidebar/_sidebar.html.erb
avo-1.11.6 app/views/avo/sidebar/_sidebar.html.erb
avo-1.11.5 app/views/avo/sidebar/_sidebar.html.erb
avo-1.11.4 app/views/avo/sidebar/_sidebar.html.erb
avo-1.11.3 app/views/avo/sidebar/_sidebar.html.erb
avo-1.11.2 app/views/avo/sidebar/_sidebar.html.erb
avo-1.11.1 app/views/avo/sidebar/_sidebar.html.erb
avo-1.10.3 app/views/avo/sidebar/_sidebar.html.erb
avo-1.11.0 app/views/avo/sidebar/_sidebar.html.erb
avo-1.10.2 app/views/avo/sidebar/_sidebar.html.erb
avo-1.10.1 app/views/avo/sidebar/_sidebar.html.erb
avo-1.10.0 app/views/avo/sidebar/_sidebar.html.erb
avo-1.9.1 app/views/avo/sidebar/_sidebar.html.erb