Sha256: 3aaeed30417a9933dfa31c46fb35b3a65b24369c2a8f684a014a20035444a80e

Contents?: true

Size: 1.36 KB

Versions: 42

Compression:

Stored size: 1.36 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.configuration.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

42 entries across 42 versions & 1 rubygems

Version Path
avo-1.7.2 app/views/avo/sidebar/_sidebar.html.erb
avo-1.7.1 app/views/avo/sidebar/_sidebar.html.erb
avo-1.7.0 app/views/avo/sidebar/_sidebar.html.erb
avo-1.6.4.pre.1 app/views/avo/sidebar/_sidebar.html.erb
avo-1.6.3.pre.3 app/views/avo/sidebar/_sidebar.html.erb
avo-1.6.3.pre.2 app/views/avo/sidebar/_sidebar.html.erb
avo-1.6.3.pre.1 app/views/avo/sidebar/_sidebar.html.erb
avo-1.6.2.pre.1 app/views/avo/sidebar/_sidebar.html.erb
avo-1.6.1 app/views/avo/sidebar/_sidebar.html.erb
avo-1.6.0 app/views/avo/sidebar/_sidebar.html.erb
avo-1.5.5 app/views/avo/sidebar/_sidebar.html.erb
avo-1.5.4 app/views/avo/sidebar/_sidebar.html.erb
avo-1.5.3 app/views/avo/sidebar/_sidebar.html.erb
avo-1.5.2 app/views/avo/sidebar/_sidebar.html.erb
avo-1.5.1 app/views/avo/sidebar/_sidebar.html.erb
avo-1.5.0 app/views/avo/sidebar/_sidebar.html.erb
avo-1.4.5.pre.1 app/views/avo/sidebar/_sidebar.html.erb
avo-1.4.4.pre.1 app/views/avo/sidebar/_sidebar.html.erb
avo-1.4.4 app/views/avo/sidebar/_sidebar.html.erb
avo-1.4.3 app/views/avo/sidebar/_sidebar.html.erb