Sha256: 3c42c17de135a58f74a6bcf2d5b301dda3cfd78d2a6c5fc72fd18866211be41b

Contents?: true

Size: 1.59 KB

Versions: 3

Compression:

Stored size: 1.59 KB

Contents

<div class="flex flex-col h-full text-sm">
  <div class="flex md:block justify-between items-center">
    <div class="flex md:block items-center">
      <h1 class="mr-2 md:p-2 text-xl font-semibold">Madmin</h1>
      <% if main_app.respond_to?(:root_url) %>
        <%= link_to main_app.root_url, class: "block p-2 rounded hover:bg-gray-200", data: { turbo: false } do %>
          ← Back <span class="hidden md:inline">to App</span>
        <% end %>
      <% end %>
    </div>

    <div class="-mr-2 flex items-center md:hidden relative" data-controller="dropdown">
      <button data-action="click->dropdown#toggle touch->dropdown#toggle click@window->dropdown#hide touch@window#dropdown->hide" type="button" class="bg-white rounded-md p-2 inline-flex items-center justify-center text-gray-400 hover:bg-gray-200 focus:outline-none focus:ring-2 focus-ring-inset focus:ring-white" id="main-menu" aria-haspopup="true">
        <span class="sr-only">Open main menu</span>
        <!-- Heroicon name: outline/menu -->
        <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
        </svg>
      </button>

      <div class="absolute top-12 right-0 bg-white rounded-lg min-w-64 shadow-lg hidden md:flex flex-col flex-grow justify-between" data-dropdown-target="menu">
        <%= render "menu_resources" %>
      </div>
    </div>
    <div class="hidden md:block">
      <%= render "menu_resources" %>
    </div>
  </div>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
madmin-1.2.11 app/views/madmin/application/_navigation.html.erb
madmin-1.2.10 app/views/madmin/application/_navigation.html.erb
madmin-1.2.9 app/views/madmin/application/_navigation.html.erb