Sha256: 5b23a78d6baeb98a7ae6784a6e1a8ea10354e5048609c4d23cad259f0455d48b

Contents?: true

Size: 857 Bytes

Versions: 4

Compression:

Stored size: 857 Bytes

Contents

<% content_for 'Navigation::Posts' do %>

  <%= content_tag :a, href: drafts_admin_posts_path do |a| %>
    <% if action_name.eql?('drafts') %>
      <% a.css << 'selected' %>
    <% end %>
    Drafts
  <% end %>

  <%= content_tag :a, href: published_admin_posts_path do |a| %>
    <% if action_name.eql?('published') %>
      <% a.css << 'selected' %>
    <% end %>
    Published
  <% end %>

  <%= link_to 'New Post', new_admin_post_path %>
<% end %>

<%= render('admin/navigation') %>

<section id='PostsIndexList' class='posts'>

  <%= content_tag :div, render('search'), class: %w(search) %>

  <ul class='posts' as='Posts.List'>
    <%= render @posts %>
  </ul>

  <%= form_for :posts, url: {controller: 'admin/posts', action: action_name}, method: 'GET', html: {name: 'posts', id: 'PostsFilter', as: 'Posts.Filter'} do |f| %>
  <% end %>
</section>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ecrire-0.30.3 lib/ecrire/app/views/admin/posts/index.html.erb
ecrire-0.30.2 lib/ecrire/app/views/admin/posts/index.html.erb
ecrire-0.30.1 lib/ecrire/app/views/admin/posts/index.html.erb
ecrire-0.30.0 lib/ecrire/app/views/admin/posts/index.html.erb