Sha256: 9cc23f274607ffb7f11019911932ac46146ca44816741373580879c6661a8f00
Contents?: true
Size: 1.07 KB
Versions: 6
Compression:
Stored size: 1.07 KB
Contents
<%# # Navigation This partial is used to display the navigation in Administrate. By default, the navigation contains navigation links for all resources in the admin dashboard, as defined by the routes in the `admin/` namespace %> <nav class="bg-white shadow"> <div class="container mx-auto px-4 sm:px-6 lg:px-8"> <div class="flex items-center justify-between h-16"> <%= link_to(t("administrate.navigation.back_to_app"), root_url, class: "text-gray-700 hover:text-gray-900 px-3 py-2 rounded-md text-sm font-medium") if defined?(root_url) %> <div class="hidden md:block"> <% Administrate::Namespace.new(namespace).resources_with_index_route.each do |resource| %> <%= link_to( display_resource_name(resource), resource_index_route(resource), class: "text-gray-700 px-3 py-2 rounded-md text-sm font-medium hover:text-gray-900 #{'bg-gray-100' if nav_link_state(resource) == 'active'}" ) if accessible_action?(model_from_resource(resource), :index) %> <% end %> </div> </div> </div> </nav>
Version data entries
6 entries across 6 versions & 1 rubygems