Sha256: a891fb86a40b41d639220eadd22c7c911802bd1e71d8baa939add3355946ee9c
Contents?: true
Size: 1.75 KB
Versions: 8
Compression:
Stored size: 1.75 KB
Contents
<%= render Spina::UserInterface::HeaderComponent.new do |header| %> <% header.actions do %> <% if @resource %> <%= link_to spina.edit_admin_resource_path(@resource), class: 'btn btn-default' do %> <%= heroicon('cog', style: :solid, class: 'text-gray-300 w-5 h-5 -ml-1 mr-1') %> <%=t 'spina.resources.settings', label: @resource.label %> <% end %> <% end %> <div class="ml-3"> <%= render Spina::Pages::NewPageButtonComponent.new(@page_templates, resource: @resource) %> </div> <% end %> <% header.navigation do %> <nav class="-mb-1 md:-mb-3 mt-4"> <ul class="inline-flex w-auto rounded-md bg-white"> <%= render Spina::UserInterface::TabLinkComponent.new(spina.admin_pages_path, active: @resource.nil?) do %> <%= heroicon('collection', style: :solid, class: "h-4 w-4 mr-1 -ml-1 opacity-75") %> <%=t 'spina.website.main' %> <% end %> <% Spina::Resource.order(:name).each do |resource| %> <%= render Spina::UserInterface::TabLinkComponent.new(spina.admin_pages_path(resource_id: resource.id), active: @resource == resource) do %> <%= heroicon('collection', class: 'h-4 w-4 mr-1 -ml-1 opacity-75') %> <%= resource.label %> <% end %> <% end %> </ul> </nav> <% end %> <% end %> <% if @pages.any? %> <div class="my-6 md:m-8 bg-white md:rounded-lg border-l-0 border-r-0 border md:border-r md:border-l border-gray-200 border-b-0 shadow-sm"> <%= render Spina::Pages::ListComponent.new(pages: @pages, sortable: @resource.nil? || @resource&.order_by&.blank?) %> </div> <% else %> <div class="m-8 my-6 italic text-gray-400"><%=t 'spina.pages.no_pages_yet' %></div> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems