Sha256: 23caf457f66a18a1d5d8d889a14a7beb344c105fcc3cc2d9594dc040e0d6c00b

Contents?: true

Size: 1.49 KB

Versions: 2

Compression:

Stored size: 1.49 KB

Contents

<%= render Spina::UserInterface::HeaderComponent.new do |header| %>
  <% header.after_breadcrumbs do %>
    <%= link_to spina.new_admin_conferences_blog_post_path, class: 'btn btn-default h-8 px-2 ml-3' do %>
      <%= heroicon('plus', style: :solid, class: 'w-6 h-6') %>
    <% end %>
  <% end %>
  
  <% header.navigation do %>
    <nav class="-mb-3 mt-4">
      <ul class="inline-flex w-auto rounded-md bg-white">
        <%= render Spina::UserInterface::TabLinkComponent.new(t('spina.blog.posts.all_posts'), spina.admin_conferences_blog_posts_path, active: action_name == 'index') %>
        
        <%= render Spina::UserInterface::TabLinkComponent.new(t('spina.blog.posts.live_posts'), spina.live_admin_conferences_blog_posts_path, active: action_name == 'live') %>
        
        <%= render Spina::UserInterface::TabLinkComponent.new(t('spina.blog.posts.draft_posts'), spina.draft_admin_conferences_blog_posts_path, active: action_name == 'draft') %>
        
        <%= render Spina::UserInterface::TabLinkComponent.new(t('spina.blog.posts.scheduled_posts'), spina.future_admin_conferences_blog_posts_path, active: action_name == 'future') %>
      </ul>
    </nav>
  <% end %>
<% end %>

<div class="p-8">
  <% if @posts.any? %>
    <div class="shadow-sm border border-gray-200 bg-white rounded-lg">
      <%= render partial: 'post', collection: @posts, as: :post %>
    </div>
  <% else %>
    <div class="text-gray-700 italic">
      There are no posts yet. Create your first one!
    </div>
  <% end %>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spina-admin-conferences-blog-0.3.1 app/views/spina/admin/conferences/blog/posts/index.html.erb
spina-admin-conferences-blog-0.2.0 app/views/spina/admin/conferences/blog/posts/index.html.erb