Sha256: 0a083646bbdd36a6a35adee9aa8524aa4bf47a4e651891f220f23cbbe708f8f8

Contents?: true

Size: 1.37 KB

Versions: 18

Compression:

Stored size: 1.37 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).sort_by { |r| r.navigation_label }.each do |resource| %>
            <%= render Avo::NavigationLinkComponent.new label: resource.navigation_label, path: resources_path(resource: resource) %>
          <% 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

18 entries across 18 versions & 1 rubygems

Version Path
avo-1.21.1.pre.1 app/views/avo/sidebar/_sidebar.html.erb
avo-1.21.0 app/views/avo/sidebar/_sidebar.html.erb
avo-1.20.2.pre.2 app/views/avo/sidebar/_sidebar.html.erb
avo-1.20.2.pre.1 app/views/avo/sidebar/_sidebar.html.erb
avo-1.21.0.pre.1 app/views/avo/sidebar/_sidebar.html.erb
avo-1.20.1 app/views/avo/sidebar/_sidebar.html.erb
avo-1.19.1.pre.11 app/views/avo/sidebar/_sidebar.html.erb
avo-1.19.1.pre.10 app/views/avo/sidebar/_sidebar.html.erb
avo-1.19.1.pre.9 app/views/avo/sidebar/_sidebar.html.erb
avo-1.19.1.pre.8 app/views/avo/sidebar/_sidebar.html.erb
avo-1.19.1.pre.7 app/views/avo/sidebar/_sidebar.html.erb
avo-1.19.1.pre.6 app/views/avo/sidebar/_sidebar.html.erb
avo-1.19.1.pre.5 app/views/avo/sidebar/_sidebar.html.erb
avo-1.19.1.pre.4 app/views/avo/sidebar/_sidebar.html.erb
avo-1.19.1.pre.3 app/views/avo/sidebar/_sidebar.html.erb
avo-1.19.1.pre.2 app/views/avo/sidebar/_sidebar.html.erb
avo-1.19.1.pre.1 app/views/avo/sidebar/_sidebar.html.erb
avo-1.19.0 app/views/avo/sidebar/_sidebar.html.erb