aboutsummaryrefslogblamecommitdiffstats
path: root/app/views/admin/blog/posts/index.html.erb
blob: f9baaac18bbbe96ac8b8101a818395673b7251b8 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                               

                     
                                                                                   
                             

                                    
                                              
         
              
                                                       


                             
                                      


                                               
                                      


                
                                                                                 



                 
      
<%= render :partial => '/admin/blog/submenu' %>
<div id='records'>
  <% if searching? %>
    <h2><%= t('shared.admin.search.results_for', :query => params[:search]) %></h2>
    <% if @blog_posts.any? %>
    <ul>
      <%= render :partial => "post",
                 :collection => @blog_posts %>
    </ul>
    <% else %>
      <p><%= t('shared.admin.search.no_results') %></p>
    <% end %>
  <% else %>
    <% if @blog_posts.any? %>
      <%= will_paginate @blog_posts %>

      <%= render :partial => "sortable_list" %>

      <%= will_paginate @blog_posts %>
    <% else %>
      <p>
        <strong>
          <%= t('.no_items_yet', :create => t('admin.blog.submenu.posts.new')) %>
        </strong>
      </p>
    <% end %>
  <% end %>
</div>