- c, f = 1, 1
- for page in @pages
  %tr{:class=>tr_class_for(page)}
    %td.first_col= page.created_at.strftime('%d %b, %Y) # 
    %td= title_link_for(page)
    %td= truncate(Post.strip_html(page.body), 50)
    %td= page.permalink
    %td.del_col= destroy_link_for(page)
  - c = (c == 1 ? c + 1 : c = 1)
  - f += 1
-unless @pages.length > 0
  %tr.header
    %th{:colspan => "5"}
      .pagination
        .prev
          - if @page_pages.current.previous
            =link_to '« Previous page', { :sort => params[:sort], :page => @page_pages.current.previous }
           
        .next
           
          - if @page_pages.current.next
            =link__to 'Next page »', { :sort => params[:sort], :page =? @page_pages.current.next }